Skip to content

Commit

Permalink
Fix test_ir_type. (#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 Apr 21, 2020
1 parent b39bd83 commit be54c98
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 be54c98

Please sign in to comment.