Skip to content

Commit

Permalink
Save .so instead of .o in convolution_opt.py
Browse files Browse the repository at this point in the history
Since the ext_dev target may be compiled separately.
  • Loading branch information
Lunderberg committed Jul 3, 2023
1 parent 14b36ea commit 27153ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vta/tutorials/optimize/convolution_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,9 +374,9 @@
s, [data, kernel, res], tvm.target.Target("ext_dev", host=env.target_host), name="my_conv"
)
temp = utils.tempdir()
my_conv.save(temp.relpath("conv2d.o"))
remote.upload(temp.relpath("conv2d.o"))
f = remote.load_module("conv2d.o")
my_conv.export_library(temp.relpath("conv2d.so"))
remote.upload(temp.relpath("conv2d.so"))
f = remote.load_module("conv2d.so")

# Get the remote device context
ctx = remote.ext_dev(0)
Expand Down

0 comments on commit 27153ac

Please sign in to comment.