-
Notifications
You must be signed in to change notification settings - Fork 3.7k
WIP #24837
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
WIP #24837
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can commit the suggested changes from lintrunner.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can commit the suggested changes from lintrunner.
|
In what situation will row_sum_shared be 0? As long as there is >=1 element(s), exp(value-max_value) = exp(0) = 1 when value = max_value, so row_sum_shared shall >= 1. |
|
Continued in #24855 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can commit the suggested changes from lintrunner.
| TEST(SoftmaxOperator, webgpu_nan) { | ||
| OpTester test("Softmax", 13); // axis default is -1 | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| TEST(SoftmaxOperator, webgpu_nan) { | |
| OpTester test("Softmax", 13); // axis default is -1 | |
| TEST(SoftmaxOperator, webgpu_nan) { | |
| OpTester test("Softmax", 13); // axis default is -1 | |
| test.AddOutput<float>("Y", dimensions, expected_result); | ||
|
|
||
| // explicitly disable CPU EP for this test since CPU implementation does not handle NaN |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| test.AddOutput<float>("Y", dimensions, expected_result); | |
| // explicitly disable CPU EP for this test since CPU implementation does not handle NaN | |
| test.AddOutput<float>("Y", dimensions, expected_result); | |
| // explicitly disable CPU EP for this test since CPU implementation does not handle NaN |
No description provided.