Skip to content

Commit 5c1058c

Browse files
committed
Replace the te.create_prim_func() with te.create_function()
1 parent e416b4a commit 5c1058c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎tests/python/relax/test_frontend_onnx.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9815,7 +9815,7 @@ def _build_topi_resize2d_nearest_asymmetric_prim_func(input_shape, size, scales=
98159815
rounding_method="",
98169816
scales=scales,
98179817
)
9818-
prim_func = te.create_prim_func([data, resized])
9818+
prim_func = te.create_function([data, resized])
98199819
return resized, prim_func
98209820

98219821

@@ -9830,8 +9830,8 @@ def _run_prim_func(prim_func, input_np, output_shape, target="llvm"):
98309830
is what's being checked.
98319831
"""
98329832
built = tvm.compile(prim_func, target=target)
9833-
data_nd = tvm.runtime.tensor(input_np.astype("float32"))
9834-
out_nd = tvm.runtime.tensor(np.zeros(output_shape, dtype="float32"))
9833+
data_nd = tvm_tirx.runtime.tensor(input_np.astype("float32"))
9834+
out_nd = tvm_tirx.runtime.tensor(np.zeros(output_shape, dtype="float32"))
98359835
built(data_nd, out_nd)
98369836
return out_nd.numpy()
98379837

0 commit comments

Comments
 (0)