Skip to content

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

Closed
wants to merge 10 commits into from

Conversation

Hmm-1224
Copy link
Contributor

@Hmm-1224 Hmm-1224 commented Mar 12, 2025

@rkazants, please check out this PR

@codecov-commenter
Copy link

codecov-commenter commented Mar 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.55%. Comparing base (5f2793e) to head (3262a91).

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #21017   +/-   ##
=======================================
  Coverage   82.55%   82.55%           
=======================================
  Files         564      564           
  Lines       54638    54649   +11     
  Branches     8497     8500    +3     
=======================================
+ Hits        45105    45116   +11     
  Misses       7442     7442           
  Partials     2091     2091           
Flag Coverage Δ
keras 82.36% <100.00%> (+<0.01%) ⬆️
keras-jax 63.62% <0.00%> (-0.02%) ⬇️
keras-numpy 58.73% <0.00%> (-0.01%) ⬇️
keras-openvino 32.99% <100.00%> (+0.01%) ⬆️
keras-tensorflow 64.02% <0.00%> (-0.02%) ⬇️
keras-torch 63.67% <0.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@rkazants
Copy link
Contributor

rkazants commented Mar 13, 2025

a lot of unneeded changes:
{0C31B750-BFC2-47B5-814A-EA1809765F09}

Please fix it.

@Hmm-1224
Copy link
Contributor Author

Hmm-1224 commented Mar 13, 2025

check if it is fine now.. i changed the branch

@Hmm-1224
Copy link
Contributor Author

hello @rkazants,
please do check my update and guide me further if needed...

Comment on lines 767 to 770
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.")
Copy link
Contributor

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.

Comment on lines 767 to 770
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.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.")

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()")
Copy link
Contributor

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

@Hmm-1224
Copy link
Contributor Author

Hmm-1224 commented Mar 16, 2025

ok got it sir.

@Hmm-1224 Hmm-1224 closed this Mar 18, 2025
@Hmm-1224 Hmm-1224 deleted the main branch March 18, 2025 04:53
@github-project-automation github-project-automation bot moved this from Assigned Reviewer to Closed/Rejected in PR Queue Mar 18, 2025
@Hmm-1224 Hmm-1224 restored the main branch March 24, 2025 18:42
@Hmm-1224 Hmm-1224 reopened this Mar 24, 2025
@github-project-automation github-project-automation bot moved this from Closed/Rejected to Assigned Reviewer in PR Queue Mar 24, 2025
@Hmm-1224 Hmm-1224 force-pushed the main branch 2 times, most recently from 35de273 to 4957517 Compare April 29, 2025 06:40
@Hmm-1224
Copy link
Contributor Author

Hello @rkazants,
could you please verify changes that i made..

@Hmm-1224
Copy link
Contributor Author

Hmm-1224 commented May 1, 2025

Hii @rkazants,
sir could you please have a look on the modifications...

@Hmm-1224 Hmm-1224 closed this May 18, 2025
@github-project-automation github-project-automation bot moved this from Assigned Reviewer to Closed/Rejected in PR Queue May 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Closed/Rejected
Development

Successfully merging this pull request may close these issues.

4 participants