-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Update and fix Vulkan soft_max and argsort implementations #7237
Conversation
Not sure if this is the right place to discuss, I am digging into the issue #7130 Here is the root cause: Embedding computation always try to first allocate buffer with 0 size. Because of Lines 625 to 631 in b228aba
For vulkan backend, Lines 6031 to 6043 in b228aba
And because Should there be a null check here to throw an exception? Falling back to CPU buffer actually works despite the warning. |
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.
Might be a good idea before merging to run the 2 tests from the #7192 and verify that the output is reasonable
Nevermind, the issue is much deeper than this. Please ignore it here |
I updated Vulkan for the changes in #7192 and fixed a bug in the soft_max implementation. That allowed me to clean up some code that was only needed for the three input tensor soft_max op.
I also updated and fixed the argsort implementation. Now test-backend-ops fully passes for the Vulkan backend.