Unverified Commit be54c984 by Andrew Reusch Committed by GitHub

Fix test_ir_type. (#5390)

* The void return type is not None/nullptr, it's VoidType or
   TupleType([]).
parent b39bd831
......@@ -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])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment