openvino icon indicating copy to clipboard operation
openvino copied to clipboard

[Good First Issue]: Support aten::rot90 for pytorch models

Open mvafin opened this issue 1 year ago • 24 comments

Context

OpenVINO component responsible for support of PyTorch models is called as PyTorch Frontend (PT FE). PT FE converts a model represented as TorchScript model to a model in OpenVINO opset.

Please refer to decomposition of this operation in torch for hints how to implement with OpenVINO opset: https://github.com/pytorch/pytorch/blob/3f89f565bb17bcb70cb6938540af0cd154c8344a/torch/_refs/init.py#L3796

What needs to be done?

  • Implement conversion rule and/or transformation to support the new operation.
  • Implement operation tests in tests/layer_tests/pytorch_tests. Please consider different data types, but keep reasonable number of test cases

Example Pull Requests

#18998

Resources

Contact points

@openvinotoolkit/openvino-pytorch-frontend-maintainers

Ticket

CVS-138770

mvafin avatar Apr 17 '24 11:04 mvafin

.take

NavyaLingisetty avatar Apr 17 '24 21:04 NavyaLingisetty

Thank you for looking into this issue! Please let us know if you have any questions or require any help.

github-actions[bot] avatar Apr 17 '24 21:04 github-actions[bot]

Hello @NavyaLingisetty, are you still working on that issue? Do you need any help?

p-wysocki avatar May 06 '24 09:05 p-wysocki

@p-wysocki Can I help In this if it is not fixed ?

parthrastogicoder avatar Jul 10 '24 19:07 parthrastogicoder

@p-wysocki Can I help In this if it is not fixed ?

Sure.

NavyaLingisetty avatar Jul 10 '24 20:07 NavyaLingisetty

.take

shivamgcodes avatar Sep 23 '24 16:09 shivamgcodes

Thank you for looking into this issue! Please let us know if you have any questions or require any help.

github-actions[bot] avatar Sep 23 '24 16:09 github-actions[bot]

hey @shivamgcodes - do you need any support or you don't have to finish this task?

mlukasze avatar Nov 06 '24 07:11 mlukasze

yea , i was stuck in a couple places .. i got the help i needed in the discord group. will make sure to submit a pr within the next 3 days sorry for the delay

shivamgcodes avatar Nov 06 '24 16:11 shivamgcodes

sorry, i just could not solve it.

shivamgcodes avatar Dec 01 '24 21:12 shivamgcodes

do not worry :) we do have plenty other tasks to pick up, maybe some other will be more convinient for you?

mlukasze avatar Dec 02 '24 05:12 mlukasze

yea, i will take a look at the repository and search for more suitable issues. Thanks.

shivamgcodes avatar Dec 03 '24 20:12 shivamgcodes

.take

Po-V avatar Dec 10 '24 16:12 Po-V

Thank you for looking into this issue! Please let us know if you have any questions or require any help.

github-actions[bot] avatar Dec 10 '24 16:12 github-actions[bot]

Hi, it appears flip.hpp is not available at openvino/src/core/include/openvino/op. I am not sure how to include the flip operation into my rotation without the header file ?

Po-V avatar Dec 25 '24 16:12 Po-V

@Po-V what do you mean under flip.hpp? Do you speak about https://github.com/openvinotoolkit/openvino/blob/master/src/frontends/pytorch/src/op/flip.cpp ?

There is no header inside openvino/op as pytorch flip operation implemented as decomposition of several opset operations. For reusing its functionality (as usually operation translators include own logic for input arguments validation that may be different from your operation expected) you can move common part into https://github.com/openvinotoolkit/openvino/blob/master/src/frontends/pytorch/src/utils.cpp and include it in https://github.com/openvinotoolkit/openvino/blob/master/src/frontends/pytorch/src/utils.hpp

eaidova avatar Dec 26 '24 06:12 eaidova

Ok, thank you @eaidova . I will try adding it to utils

Po-V avatar Dec 28 '24 17:12 Po-V

@p-wysocki sir is this issue solved and ready to merge or can I try on this since i have worked with the -#28395 pretty recently. and the issue here is somewhere for pytorch models which I have been trying to learn through your issues

Please let me know :)

Thanks and Regards.

geeky33 avatar Jan 21 '25 23:01 geeky33

Hello @geeky33, I see that @Po-V is working hard on that issue, but there are plenty other operators to pick from for PyTorch Frontend - add a comment in https://github.com/openvinotoolkit/openvino/issues/28584 picking an operator you'd like to enable. :)

p-wysocki avatar Jan 23 '25 13:01 p-wysocki

@p-wysocki Right sir, I completely understand :) Looking forward for more collaborations! :) Thank you for the idea !!! Please let me know where all I can contribute in!

geeky33 avatar Jan 24 '25 04:01 geeky33

.take

esty-gitt avatar Nov 15 '25 21:11 esty-gitt

.take

Vishwa2684 avatar Nov 17 '25 07:11 Vishwa2684

.take

anishkr02 avatar Nov 24 '25 03:11 anishkr02

Hello @mvafin / @PiotrKrzem sir, I made a PR on this issue

#33177

Could you review it?

Vishwa2684 avatar Dec 11 '25 08:12 Vishwa2684