Skip to content

Commit

Permalink
Fix test_ir_type. (apache#5390)
Browse files Browse the repository at this point in the history
* The void return type is not None/nullptr, it's VoidType or
   TupleType([]).
  • Loading branch information
areusch authored and Trevor Morris committed Jun 8, 2020
1 parent b9fd503 commit 16702d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/python/unittest/test_ir_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])

Expand Down

0 comments on commit 16702d5

Please sign in to comment.