How to get an example to use resnet50 with pure wasm?

Hi ,guys. I want to use pure wasm in web page. How to get an example to use resnet50 with pure wasm?

The original TVM WASM blogpost has a link to a codebase which uses WASM for the host-code, and WebGPU for the kernels.

The pipeline might have changed a little bit since then (the codebase is from mid-2020), but I believe other than changing the model to be ResNet50, the only key thing you need to change is the target-device to be the same as the target_host.

Thank you for your reply! I have another question: Does TVM support WEBGL? It seems onnx.js faster than tvm.

This is a bit outwith my area of experience with TVM, however I do recall seeing TVM had WebGL support, as discussed in this 2018 blogpost.

However, this forum discussion in 2020 discussed deprecating in favour of WebGPU, with WebGPU being the backend used in the WASM blogpost linked earlier in this thread.

When you are comparing onnx.js with TVM, are you using WASM or WebGPU for the target_device?