microsoft / onnxjs

ONNX.js: run ONNX models using JavaScript
Other
1.75k stars 130 forks source link

TypeError: cannot resolve operator 'ReduceL2' with opsets: ai.onnx v10 #316

Closed sgltkn closed 2 years ago

sgltkn commented 2 years ago

I am getting ReduceL2 operator error while creating InferenceSession with WebGL provider.

...
const options = { executionProviders: ['webgl'] } as OnnxRuntimeWeb.InferenceSession.SessionOptions;
this.resnet28Session = await OnnxRuntimeWeb.InferenceSession.create(this.resnet28Path, options);
...

image

Onnx version is 1.9.0 OS: Pop OS 21.04 (Nvidia)

We look forward to your reply . Thank you!

sgltkn commented 2 years ago

wrong place