-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Open
Labels
WebNNWebNN on top of onnxruntimeWebNN on top of onnxruntimeep:WebGPUort-web webgpu providerort-web webgpu providerplatform:webissues related to ONNX Runtime web; typically submitted using templateissues related to ONNX Runtime web; typically submitted using template
Description
Describe the issue
Following error will happen when running detr-resnet-50 model with ORT-WebGPU backend in WebNN-GPU:
[WebNN] Failed to call ort_api->Run(session_.get(), nullptr, input_names.data(), input_tensors.data(), input_names.size(), output_names.data(), output_names.size(), output_tensors.data()): [WebNN] ORT status error code: 6 error message: Non-zero status code returned while running CumSum node. Name:'/model/backbone/position_embedding/CumSum_158' Status Message: D:\Qiujiao\onnxruntime\include\onnxruntime\core/framework/tensor.h:221 onnxruntime::Tensor::Data utils::IsPrimitiveDataType<T>(dtype_) was false. Tensor type mismatch. T !=class onnxruntime::PrimitiveDataType<__int64>
To reproduce
- Build ort only with webgpu ep enabled via
--use_webgpuand copy the built dlls to "C:\Program Files<your folder>" - Launch chrome canary with flag
"%LOCALAPPDATA%\Google\Chrome SxS\Application\chrome.exe" --enable-features=WebMachineLearningNeuralNetwork,WebNNOnnxRuntime --allow-third-party-modules --webnn-ort-library-path-for-testing="C:\Program Files\<your folder>"
- . Navigate to https://webai.run/?modeltype=onnx&datatype=fp32&backend=webnn_gpu&run=50&model=detr_resnet_50_fp32 and you can see crash log in about://gpu page
Urgency
No response
Platform
Windows
OS Version
Win11
ONNX Runtime Installation
Built from Source
ONNX Runtime Version or Commit ID
ONNX Runtime API
C
Architecture
X64
Execution Provider
Other / Unknown
Execution Provider Library Version
No response
Metadata
Metadata
Assignees
Labels
WebNNWebNN on top of onnxruntimeWebNN on top of onnxruntimeep:WebGPUort-web webgpu providerort-web webgpu providerplatform:webissues related to ONNX Runtime web; typically submitted using templateissues related to ONNX Runtime web; typically submitted using template