Skip to content

[ORT GPU(WebGPU)][WebNN]Error will happen when running detr-resnet-50 model with ORT-WebGPU backend in WebNN-GPU #26618

@qwu16

Description

@qwu16

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

  1. Build ort only with webgpu ep enabled via --use_webgpu and copy the built dlls to "C:\Program Files<your folder>"
  2. 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>" 
  1. . 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

81a04ca

ONNX Runtime API

C

Architecture

X64

Execution Provider

Other / Unknown

Execution Provider Library Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    WebNNWebNN on top of onnxruntimeep:WebGPUort-web webgpu providerplatform:webissues related to ONNX Runtime web; typically submitted using template

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions