microsoft / microsoft/onnxruntime

[ORT CPU][ORT GPU (DML)][WebNN] Error Unrecognized attribute: dilations for operator QLinearAveragePool

Open
#26,528 0 comments 0 reactions 1 assignee Claimed by @hariharans29 View on GitHub
ep:DML ep:WebNN WebNN
Dominant language
C++
Stars
21.9k
Forks
4.2k
Avg merge
4d 11h
Merged PRs (30d)
184

Description

### Describe the issue

Error Unrecognized attribute: dilations for operator QLinearAveragePool happened when running a QDQ subgraph test with WebNN quantizeLinear and averagePool2d operators by ORT default CPU EP and ORT default GPU DML EP.

Details error message:
>error message: This is an invalid model. In Node, ("_7", QLinearAveragePool, "com.microsoft", -1) : ("_5": tensor(int8),"Inserted_5": tensor(float),"Inserted_7": tensor(int8),"Inserted_9": tensor(float),"Inserted_11": tensor(int8),) -> ("_12": tensor(int8),) , Error Unrecognized attribute: dilations for operator QLinearAveragePool

/cc @fdwr PTAL, thanks!

### To reproduce

1. Install Windows App SDK Stable [1.8.2 (1.8.251003001)](https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/stable-channel#version-18)
2. Install [lates Edge Canary browser](https://www.microsoft.com/en-us/edge/download/insider?form=MA13FJ)
3. Launch Edge Canary browser, navigate to `about://flags` enabled "Enables WebNN API" and "ONNX Runtime backend for WebNN" flags, then relaunch browser
4. Navigate to below test url, then get above log message from `about://gpu`

|Test| Test URL|
|-- | --|
quantized averagePool2d |https://wpt.live/webnn/conformance_tests/qdq_subgraph.https.any.html?device=cpu&tc=quantized%20averagePool2d

Note: Please replace `cpu` with `gpu` for *device* parameter in `Test URL` to test by ORT default GPU EP.

### Urgency

_No response_

### ONNX Runtime Installation

Released Package Windows App SDK Stable [1.8.2 (1.8.251003001)](https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/stable-channel#version-18)

### ONNX Runtime Version or Commit ID

1.23.25.928

### Execution Provider

ORT default CPU EP, ORT default GPU EP

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.