Skip to content
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

[PT FE] Added support for aten::__lshift__ and aten::__rshift__ and aten::bitwise_left_shift and aten::bitwise_right_shift #28939

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

Conversation

Mohamed-Ashraf273
Copy link

Details:

  • added aten::lshift and aten::rshift
  • added aten::bitwise_left_shift and aten::bitwise_right_shift

Tickets:

@Mohamed-Ashraf273 Mohamed-Ashraf273 requested a review from a team as a code owner February 11, 2025 21:24
@github-actions github-actions bot added the category: PyTorch FE OpenVINO PyTorch Frontend label Feb 11, 2025
@sys-openvino-ci sys-openvino-ci added the ExternalPR External contributor label Feb 11, 2025
@Mohamed-Ashraf273
Copy link
Author

Mohamed-Ashraf273 commented Feb 11, 2025

Hi @mvafin,
I've completed this PR, and it's ready for review.


auto [input_tensor, shift_amount] = get_inputs_with_promoted_types(context, 0, 1);

auto lshift_node = context.mark_node(std::make_shared<v15::BitwiseLeftShift>(input_tensor, shift_amount));
Copy link
Member

Choose a reason for hiding this comment

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

These two operations are sort of binary operations for which we do not create separate source files and translator. Please check how other binary operations are supported and support yours in the same way.

Copy link
Author

Choose a reason for hiding this comment

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

thank you for your review,
I've started working on resolving the problem

Copy link
Author

Choose a reason for hiding this comment

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

@rkazants I've resolved the problem

@Mohamed-Ashraf273
Copy link
Author

hi @mvafin ,
I've updated the PR and ready for review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: PyTorch FE OpenVINO PyTorch Frontend ExternalPR External contributor
Projects
None yet
3 participants