Joetibz commented on issue #4272:
URL: https://github.com/apache/tvm/issues/4272#issuecomment-1415973447

   okay so if i run my own python script like this i should be able to
   run tvm on the board with rpc and yes i am aware TVM has long improved
   from then till no
   
   import ctypes
   
   import tvm
   from tvm.contrib import graph_runtime as runtime
   
   libvta_path = "/home/xilinx/tvm/build/libvta.so"
   ctypes.CDLL(libvta_path, ctypes.RTLD_GLOBAL)
   
   # load compiled model
   with open("graph.json", "r") as graph_file:
       graph = graph_file.read()
   with open("params.params", "rb") as params_file:
       params = bytearray(params_file.read())
   lib = tvm.module.load("./lib.tar")
   
   ctx = tvm.ext_dev(0)
   
   module = runtime.create(graph, lib, ctx)
   module.load_params(params)
   okay so if i run my own python script like this i should be able to run tvm
   on the board with rpc and yes i am aware TVM has long improved from then
   till now but i am open to any contributions you might suggest about running
   tvm on the fpga board
   
   On Fri, Feb 3, 2023 at 2:13 PM Philipp Krones ***@***.***>
   wrote:
   
   > I'm not aware of any other modifications. However, when I used TVM it was
   > even pre-Apache time. So a lot has happened since then. So take all of the
   > suggestions here with a grain of salt.
   >
   > —
   > Reply to this email directly, view it on GitHub
   > <https://github.com/apache/tvm/issues/4272#issuecomment-1415854684>, or
   > unsubscribe
   > 
<https://github.com/notifications/unsubscribe-auth/AZH5JBNECBHHULNXEU4RIU3WVUAAJANCNFSM4JKLY5TA>
   > .
   > You are receiving this because you commented.Message ID:
   > ***@***.***>
   >
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to