-
Notifications
You must be signed in to change notification settings - Fork 19.6k
Implement OpenVINO Decomposition for numpy.hstack Operation #21017
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 #21017 +/- ##
==========================================
- Coverage 82.68% 80.04% -2.65%
==========================================
Files 564 564
Lines 54220 54232 +12
Branches 8423 8426 +3
==========================================
- Hits 44832 43408 -1424
- Misses 7311 8808 +1497
+ Partials 2077 2016 -61
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:
|
check if it is fine now.. i changed the branch |
hello @rkazants, |
keras/src/backend/openvino/numpy.py
Outdated
if not isinstance(xs, (list, tuple)): | ||
raise TypeError("Input to `hstack` must be a list or tuple of tensors.") | ||
if len(xs) == 0: | ||
raise ValueError("Input list to `hstack` cannot be empty.") |
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, not needed checks. TF backend does not have such check for hstack implementation.
keras/src/backend/openvino/numpy.py
Outdated
if not isinstance(xs, (list, tuple)): | ||
raise TypeError("Input to `hstack` must be a list or tuple of tensors.") | ||
if len(xs) == 0: | ||
raise ValueError("Input list to `hstack` cannot be empty.") |
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.
if not isinstance(xs, (list, tuple)): | |
raise TypeError("Input to `hstack` must be a list or tuple of tensors.") | |
if len(xs) == 0: | |
raise ValueError("Input list to `hstack` cannot be empty.") |
keras/src/backend/openvino/numpy.py
Outdated
element_type = x.output.get_element_type() | ||
break | ||
xs = [get_ov_output(x, element_type) for x in xs] | ||
xs = _align_operand_types(xs[0], xs[1], "hstack()") |
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.
here you align only first two elements but it does not cover a case of list with three elements and more. Please align all of them to xs[0]
and then call concat
@rkazants, please check out this PR