Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[webnn] Add float32 tests for WebNN linear op #39429

Merged
merged 1 commit into from
Apr 25, 2023

Conversation

BruceDai
Copy link
Contributor

@BruceDai BruceDai commented Apr 7, 2023

@fdwr @Honry @dontcallmedom PTAL, thanks.

}
},
"options": {
"beta": 5.919095653700928
Copy link

Choose a reason for hiding this comment

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

Beware adding a mix of negative and positive numbers for beta, as you could get catastrophic cancellation. Adding positive beta to positive inputs or negative beta to negative inputs should ensure your ULP tolerance is valid.

Same with next two cases after this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also done to update test data to avoid catastrophic cancellation, please take another look, thanks! @fdwr

@Honry Honry merged commit 1257cb8 into web-platform-tests:master Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants