Skip to content

OpenVINO: linspace #21209

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

Open
wants to merge 58 commits into
base: master
Choose a base branch
from
Open

OpenVINO: linspace #21209

wants to merge 58 commits into from

Conversation

vi-shruti
Copy link

@rkazants for review of linspace Implementations for OpenVINO.

@codecov-commenter
Copy link

codecov-commenter commented Apr 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.55%. Comparing base (8049301) to head (c6991f9).
Report is 24 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #21209      +/-   ##
==========================================
- Coverage   82.59%   82.55%   -0.05%     
==========================================
  Files         564      564              
  Lines       54394    54683     +289     
  Branches     8459     8496      +37     
==========================================
+ Hits        44929    45143     +214     
- Misses       7391     7449      +58     
- Partials     2074     2091      +17     
Flag Coverage Δ
keras 82.36% <100.00%> (-0.05%) ⬇️
keras-jax 63.57% <0.00%> (-0.18%) ⬇️
keras-numpy 58.70% <0.00%> (-0.16%) ⬇️
keras-openvino 33.02% <100.00%> (+0.08%) ⬆️
keras-tensorflow 63.98% <0.00%> (-0.17%) ⬇️
keras-torch 63.64% <0.00%> (-0.19%) ⬇️

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.

@gbaned gbaned requested a review from mattdangerw April 29, 2025 09:45
@gbaned gbaned added this to PR Queue Apr 29, 2025
@github-project-automation github-project-automation bot moved this to Assigned Reviewer in PR Queue Apr 29, 2025
@vi-shruti
Copy link
Author

Requesting review: @rkazants / @mattdangerw

Comment on lines +966 to +967
start = ov_opset.convert(start, dtype).output(0)
stop = ov_opset.convert(stop, dtype).output(0)
Copy link
Contributor

Choose a reason for hiding this comment

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

not needed because get_ov_output already performs convert. So please remove

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for your review, @rkazants.
I've incorporated the rest of the changes but removing this seems to cause type errors.

num = ov_opset.constant(num, Type.i32).output(0)
else:
raise TypeError("`num` must be an int or OpenVINOKerasTensor.")
num = ov_opset.convert(num, Type.i32).output(0)
Copy link
Contributor

Choose a reason for hiding this comment

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

not needed

Comment on lines 969 to 974
if isinstance(num, OpenVINOKerasTensor):
num = get_ov_output(num, Type.i32)
elif isinstance(num, int):
num = ov_opset.constant(num, Type.i32).output(0)
else:
raise TypeError("`num` must be an int or OpenVINOKerasTensor.")
Copy link
Contributor

Choose a reason for hiding this comment

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

I think num = get_ov_output(num, Type.i32) should be enought for all cases


y = ov_opset.convert(y, out_dtype).output(0)
if retstep:
return OpenVINOKerasTensor(y), ov_opset.convert(step, out_dtype).output(
Copy link
Contributor

Choose a reason for hiding this comment

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

create return_step variable and assign. return_step should be wrapped with OpenVINOKerasTensor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Assigned Reviewer
Development

Successfully merging this pull request may close these issues.

4 participants