cannot resolve operator 'HardSwish' with opsets: ai.onnx v9 [Web] #20704
Labels
platform:web
issues related to ONNX Runtime web; typically submitted using template
stale
issues that have not been addressed in a while; categorized by a bot
Describe the issue
我将paddlpaddle 转换为onnx,用onnxruntime可以正常推理,输入的张量是一样的,在js中就报错,我尝试了转换成不同版本的onnx文件,都报这个错
To reproduce
<script src="https://cdn.jsdelivr.net/npm/onnxruntime-web/dist/ort.min.js"></script> <script> const session = await ort.InferenceSession.create('/pp_rec4.onnx',{executionProviders: ['webgl']} ); const dataA = Float32Array.from([……]); const tensorA = new ort.Tensor('float32', dataA, [1,3,48,320]); const feeds = { x: tensorA }; const results = await session.run(feeds); <script> ### Urgency _No response_ ### ONNX Runtime Installation Released Package ### ONNX Runtime Version or Commit ID ONNX Runtime Web v1.17.3 ### Execution Provider 'webgpu' (WebGPU)The text was updated successfully, but these errors were encountered: