This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Description
In order to do inference in browser/JavaScript, I used torch.onnx.export() to get the onnx model. And the details are below.
torch.onnx.export(net,
dummy_input,
export_onnx_file,
opset_version=13,
input_names=["input"]
)
However, I could not load the onnx model in onnx.js environment. The error is below.
Uncaught (in promise) Error: unrecognized input '' for node: Resize_61
at t.buildGraph (graph.ts:313)
at new t (graph.ts:139)
at Object.from (graph.ts:77)
at t.load (model.ts:25)
at session.ts:85
at t.event (instrument.ts:294)
at e.initialize (session.ts:81)
at e.<anonymous> (session.ts:63)
at onnx.min.js:14
at Object.next (onnx.min.js:14)
We look forward to your reply . Thank you!