-
Notifications
You must be signed in to change notification settings - Fork 19.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
Implement OpenVINO Decomposition for numpy.hstack Operation #21017
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.45% 80.16% -2.30%
==========================================
Files 562 564 +2
Lines 53720 54123 +403
Branches 8335 8412 +77
==========================================
- Hits 44297 43386 -911
- Misses 7381 8717 +1336
+ Partials 2042 2020 -22
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