microsoft / microsoft/onnxruntime

[ORT CPU][WebNN] Wrong result to run a subgraph test with WebNN batchNormalization default + sigmoid operators

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

Description

### Describe the issue

Wrong result to run a subgraph test with WebNN batchNormalization default + sigmoid operators by ORT default CPU EP.

|Test|Error message|
|---|--|
batchNormalization default + sigmoid | assert_less_than_equal: assert_array_approx_equals_ulp: test batchNormalization sigmoid float32 actual 9.834766387939453e-7 should be close enough to expected 9.09618108835275e-7 by ULP distance: expected a number less than or equal to 40n but got 1037189n

/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, get above issue with wrong result

|Test| Test URL|
|-- | --|
batchNormalization default + sigmoid |https://wpt.live/webnn/conformance_tests/subgraph.https.any.html?device=cpu&tc=batchNormalization%20default%20%2B%20sigmoid

### 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

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.