-
Notifications
You must be signed in to change notification settings - Fork 19.6k
Implement numpy.prod method for OpenVino backend #21282
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
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #21282 +/- ##
==========================================
- Coverage 82.57% 82.55% -0.03%
==========================================
Files 564 564
Lines 54677 54695 +18
Branches 8500 8505 +5
==========================================
Hits 45152 45152
- Misses 7435 7453 +18
Partials 2090 2090
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
if dtype is None and original_type != result.get_element_type(): | ||
result = ov_opset.convert(result, original_type).output(0) |
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.
according to the logic, if dtype is None, original_type is always equal to result's one. Please correct me.
That is because reshape and reduce_prod preserve tensor type:)
.ruff_cachekeras_venv/ |
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.
please remove changes here.
Switch on tests for prod.
issue: #30212
Follows the same pattern as other similar functions in the file
Passes all tests
I've removed the test from the excluded tests list, which allows for proper validation of the functionality.
@rkazants for review
All tests are passing