Skip to content

[WebNN] Fix inverted fallback data type support check - #32293

Merged
Dwayne Robinson (fdwr) merged 1 commit into
microsoft:mainfrom
Honry:fix-bug-in-int64-fallback
Sep 3, 2026
Merged

Dwayne Robinson (fdwr) merged 1 commit into
microsoft:mainfrom
Honry:fix-bug-in-int64-fallback

Conversation

@Honry

Copy link
Copy Markdown
Contributor

The guard threw whenever the fallback type WAS supported, so int64->int32 fallback never worked. Add the missing negation.

The guard threw whenever the fallback type WAS supported, so int64->int32
fallback never worked. Add the missing negation.
Copilot AI balanced review requested due to automatic review settings August 27, 2026 09:30
@Honry

Copy link
Copy Markdown
Contributor Author

Dwayne Robinson (@fdwr), PTAL, thanks!

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes WebNN fallback tensor creation by correctly rejecting only unsupported fallback types.

Changes:

  • Negates the fallback support check so supported int32 fallbacks proceed.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@fdwr Dwayne Robinson (fdwr) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Honry

Copy link
Copy Markdown
Contributor Author

Dwayne Robinson (@fdwr), can we land it?

@fdwr
Dwayne Robinson (fdwr) merged commit 66555cc into microsoft:main Sep 3, 2026
90 of 91 checks passed
@fdwr

Copy link
Copy Markdown
Contributor

Dwayne Robinson (Dwayne Robinson (@fdwr)), can we land it?

Wanming Lin (@Honry) Sorry, if such gets buried in the GitHub notification noise, feel free to bug me via Teams.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants