tvm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tqc...@apache.org
Subject [incubator-tvm] branch master updated: Fix test_ir_type. (#5390)
Date Tue, 21 Apr 2020 14:42:06 GMT
This is an automated email from the ASF dual-hosted git repository.

tqchen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tvm.git


The following commit(s) were added to refs/heads/master by this push:
     new be54c98  Fix test_ir_type. (#5390)
be54c98 is described below

commit be54c9844a7dc96a38b19cda50887dade9863a6a
Author: Andrew Reusch <areusch@octoml.ai>
AuthorDate: Tue Apr 21 07:41:52 2020 -0700

    Fix test_ir_type. (#5390)
    
    * The void return type is not None/nullptr, it's VoidType or
       TupleType([]).
---
 tests/python/unittest/test_ir_type.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/python/unittest/test_ir_type.py b/tests/python/unittest/test_ir_type.py
index a0e7d2b..1072efb 100644
--- a/tests/python/unittest/test_ir_type.py
+++ b/tests/python/unittest/test_ir_type.py
@@ -72,7 +72,7 @@ def test_func_type():
 
 def test_tuple_type():
     tp = tvm.ir.TypeVar('tp', tvm.ir.TypeKind.Type)
-    tf = tvm.ir.FuncType([], None, [], [])
+    tf = tvm.ir.FuncType([], tvm.ir.TupleType([]), [], [])
     tt = tvm.ir.TensorType(tvm.runtime.convert([1, 2, 3]), 'float32')
     fields = tvm.runtime.convert([tp, tf, tt])
 


Mime
View raw message