[PT FE] Support aten::ravel operator - #38097
Open
Anurag-M1 wants to merge 1 commit into
Open
Conversation
- Add translate_ravel in src/frontends/pytorch/src/op/ravel.cpp with support for complex tensors - Register aten::ravel in get_supported_ops_ts() and aten.ravel.default in get_supported_ops_fx() in op_table.cpp - Add comprehensive layer tests covering multiple shapes and dtypes in tests/layer_tests/pytorch_tests/test_ravel.py Relates to openvinotoolkit#28584, openvinotoolkit#28902
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Details:
translate_ravelinsrc/frontends/pytorch/src/op/ravel.cppconvertingaten::ravelto OpenVINOv1::Reshapetargeting[-1], including support for complex tensors viaComplexTypeMark.aten::ravelin TorchScript operations (get_supported_ops_ts()) andaten.ravel.defaultin FX operations (get_supported_ops_fx()) insrc/frontends/pytorch/src/op_table.cpp.tests/layer_tests/pytorch_tests/test_ravel.pycovering various ranks (1D,2D,3D,4D), scalar shapes, and multiple data types (float32,float64,int32,int64,int8).Tickets:
AI Assistance:
AI was used to draft the operator translation following existing PyTorch frontend patterns (
op/reshape.cpp) and generate test cases. Python syntax checks and local failure reproduction tests were performed.