From 16702d5e4593fb6669a2cd4c1880601d641d6958 Mon Sep 17 00:00:00 2001 From: Andrew Reusch Date: Tue, 21 Apr 2020 07:41:52 -0700 Subject: [PATCH] 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 a0e7d2b46ad6..1072efb11600 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])