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 elu op #39428

Merged
merged 1 commit into from
Apr 18, 2023

Conversation

BruceDai
Copy link
Contributor

@BruceDai BruceDai commented Apr 7, 2023

@fdwr @Honry @dontcallmedom PTAL, thanks.

}
},
"options": {
"alpha": -3.468180406374035
Copy link

Choose a reason for hiding this comment

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

I was worried about subtraction of potentially nearly equal numbers in max(0, x) + alpha * (exp(min(0, x)) - 1) , but then I realized that if x is negative, the left part is 0, and if x is positive, the right part of 0. So, LGTM. 👍

@Honry Honry merged commit e0fcd11 into web-platform-tests:master Apr 18, 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