Skip to content

Commit 4fd34b1

Browse files
authored
[Fix][Warning] tvm.target.create() deprecated (apache#13391)
Update the example with the newer API.
1 parent 034dc67 commit 4fd34b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/howto_deploy/prepare_test_libs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def prepare_graph_lib(base_path):
4444
params = {"y": np.ones((2, 2), dtype="float32")}
4545
mod = tvm.IRModule.from_expr(relay.Function([x, y], x + y))
4646
# build a module
47-
compiled_lib = relay.build(mod, tvm.target.create("llvm"), params=params)
47+
compiled_lib = relay.build(mod, tvm.target.Target("llvm"), params=params)
4848
# export it as a shared library
4949
# If you are running cross compilation, you can also consider export
5050
# to tar and invoke host compiler later.

0 commit comments

Comments
 (0)