-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Add the fp16 support for IsNaN input #32926
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
Conversation
c97060a to
348675c
Compare
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.
Pull Request Overview
This PR fixes a heap-buffer-overflow exception that occurred when the IsNaN operation receives fp16 (float16) input. The fix involves relocating the generate function for IsNaN and adding proper type handling to use the is_inf::fill_tensor template function with the correct type parameter based on the input element type.
Key Changes
- Moved the
generatefunction forov::op::v10::IsNaNto after theis_infnamespace definition - Added conditional logic to handle fp16 inputs by calling
is_inf::fill_tensor<ov::float16>for fp16 types andis_inf::fill_tensor<float>for other types
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Pull Request Overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
348675c to
16a7be9
Compare
Fixed the heap-buffer-overflow exception
16a7be9 to
ed57f63
Compare
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.
Pull Request Overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| } | ||
|
|
||
| namespace is_inf { | ||
| namespace is_cmp { |
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.
It looks like not required change
|
@olpipi review, please. |
ed57f63 to
2bdee7a
Compare
Details:
Tickets: