Closed AlexanderSerov closed 3 years ago
Thanks for easking the question, please use https://discuss.tvm.apache.org/ for related questions.
In your particular case, it could due to the original runtime bundle does not include the argsort_nms function. Changing the file https://github.com/apache/tvm/blob/main/web/emcc/wasm_runtime.cc#L44 to include https://github.com/apache/tvm/blob/main/src/runtime/contrib/sort/sort.cc might resolve the problem
@tqchen Thanks, that works. Should we open PR to add this to wasm_runtime.cc on permanent basic?
Assuming this is a common usecase, a PR(with comment on why) would be helpful. Thank you @AlexanderSerov !
We have a network which contained nms layer. I can build a module from this using relay.build and run inference using graph_runtime.GraphModule(lib"default") on host using python tvm interface flawlessly. But inference stuck with an error during inference when run inference of wasm file on node.js.
Steps to reproduce: 1) Compile wasm file using following code:
2) Run wasm module using folowing node.js code:
3) Get an error:
Environment: TVM : main branch or v0.7 Environment: ubuntu 18.04, tlcpack docker image
Notes: