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

[TF FE] Support complex tensors for Reverse,ReverseV2 operations #23395

Closed
wants to merge 5 commits into from

Conversation

MonalSD
Copy link
Contributor

@MonalSD MonalSD commented Mar 12, 2024

Details:

@MonalSD MonalSD requested a review from a team as a code owner March 12, 2024 06:35
@github-actions github-actions bot added category: TF FE OpenVINO TensorFlow FrontEnd category: TFL FE OpenVINO TensorFlow Lite FrontEnd labels Mar 12, 2024
@@ -116,6 +135,26 @@ OutputVector translate_reverse_v2_op(const NodeContext& node) {
std::vector<int64_t> axes;
Copy link
Contributor

Choose a reason for hiding this comment

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

please update above:

default_op_checks(node, 2, {"ReverseV2"}, true);

Otherwise, it means complex type is not support for ReverseV2

auto reversed_real_part = translate_reverse_base_op(node, input_real, axes);
auto reversed_imag_part = translate_reverse_base_op(node, input_imag, axes);

auto reversed = make_shared<v0::Complex>(reversed_real_part[0], reversed_imag_part[0]);
Copy link
Contributor

Choose a reason for hiding this comment

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

we do not have Complex operation in our OV opset.

@@ -30,3 +31,49 @@ def create_reverse_net(self, shape, dims):
def test_reverse_basic(self, params, ie_device, precision, ir_version, temp_dir):
self._test(*self.create_reverse_net(**params),
ie_device, precision, ir_version, temp_dir=temp_dir)

class TestReverseComplex(CommonTFLayerTest):
Copy link
Contributor

Choose a reason for hiding this comment

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

please run this layer test locally on your machine. It should not be passing now because we have a build issue in the code above:)

@rkazants rkazants added the ExternalPR External contributor label Mar 12, 2024
@p-wysocki
Copy link
Contributor

build_jenkins

@MonalSD
Copy link
Contributor Author

MonalSD commented Mar 14, 2024

@rkazants can you please guide me on how to run tests locally, I tried but I'm not able to build it.

@rkazants
Copy link
Contributor

@rkazants can you please guide me on how to run tests locally, I tried but I'm not able to build it.

Hi @MonalSD,

Please build OpenVINO locally on your machine. In build directory you should receive wheel directory with build openvino wheel package that you should install for layer tests. How yo build OV, see wiki here: https://github.com/openvinotoolkit/openvino/blob/master/docs/dev/build.md

After successful build and installation, install all reqs for running layer tests:

  1. go to layer_test directory https://github.com/openvinotoolkit/openvino/tree/master/tests/layer_tests
  2. install reqs: pip install -r requirements.txt
  3. run test pytest tensorflow_tests/test_tf_Unique.py -m precommit_tf_fe

Best regards,
Roman

@rkazants rkazants changed the title Support complex tensors for Reverse,ReverseV2 operations [TF FE] Support complex tensors for Reverse,ReverseV2 operations Mar 14, 2024
@MonalSD
Copy link
Contributor Author

MonalSD commented Mar 15, 2024

@rkazants can you please guide me on how to run tests locally, I tried but I'm not able to build it.

Hi @MonalSD,

Please build OpenVINO locally on your machine. In build directory you should receive wheel directory with build openvino wheel package that you should install for layer tests. How yo build OV, see wiki here: https://github.com/openvinotoolkit/openvino/blob/master/docs/dev/build.md

After successful build and installation, install all reqs for running layer tests:

  1. go to layer_test directory https://github.com/openvinotoolkit/openvino/tree/master/tests/layer_tests
  2. install reqs: pip install -r requirements.txt
  3. run test pytest tensorflow_tests/test_tf_Unique.py -m precommit_tf_fe

Best regards, Roman

Hie @rkazants I tried to build it ... It's still failing I'll try again and get back to you on this.

@rkazants
Copy link
Contributor

@rkazants can you please guide me on how to run tests locally, I tried but I'm not able to build it.

Hi @MonalSD,
Please build OpenVINO locally on your machine. In build directory you should receive wheel directory with build openvino wheel package that you should install for layer tests. How yo build OV, see wiki here: https://github.com/openvinotoolkit/openvino/blob/master/docs/dev/build.md
After successful build and installation, install all reqs for running layer tests:

  1. go to layer_test directory https://github.com/openvinotoolkit/openvino/tree/master/tests/layer_tests
  2. install reqs: pip install -r requirements.txt
  3. run test pytest tensorflow_tests/test_tf_Unique.py -m precommit_tf_fe

Best regards, Roman

Hie @rkazants I tried to build it ... It's still failing I'll try again and get back to you on this.

Please share what kind of error are you getting? And what step?

@MonalSD
Copy link
Contributor Author

MonalSD commented Mar 15, 2024

o
I'm not getting any error, the terminal is just crashing. I'm running the following command:

  1. cmake --build . --parallel : for this command it's crashing
  2. cmake --build . --parallel 8: for this command it's giving error 2

@rkazants
Copy link
Contributor

o
I'm not getting any error, the terminal is just crashing. I'm running the following command:

  1. cmake --build . --parallel : for this command it's crashing
  2. cmake --build . --parallel 8: for this command it's giving error 2

try cmake --build . or cmake --build . --parallel 2 to have less threads for building

@MonalSD
Copy link
Contributor Author

MonalSD commented Mar 16, 2024

o
I'm not getting any error, the terminal is just crashing. I'm running the following command:

  1. cmake --build . --parallel : for this command it's crashing
  2. cmake --build . --parallel 8: for this command it's giving error 2

try cmake --build . or cmake --build . --parallel 2 to have less threads for building

@rkazants I tried to build it for 3-4 times but it's now failing on ERROR2.

@MonalSD
Copy link
Contributor Author

MonalSD commented Mar 18, 2024

@rkazants I tried a lot build isn't passing is there any other way to resolve this? So, that we can move forward

@rkazants
Copy link
Contributor

@rkazants I tried a lot build isn't passing is there any other way to resolve this? So, that we can move forward

Hi @MonalSD,

Here are my steps I follow on Windows:

cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_BUILD_TYPE=Release -DENABLE_PYTHON=ON -DENABLE_TESTS=ON ..

after that I open created sln file in MSVS  and build inside

Here are my steps on Linux:

cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_PYTHON=ON -DENABLE_TESTS=ON ..
make -j 8

@MonalSD
Copy link
Contributor Author

MonalSD commented Mar 25, 2024

@rkazants I tried a lot build isn't passing is there any other way to resolve this? So, that we can move forward

Hi @MonalSD,

Here are my steps I follow on Windows:

cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_BUILD_TYPE=Release -DENABLE_PYTHON=ON -DENABLE_TESTS=ON ..

after that I open created sln file in MSVS  and build inside

Here are my steps on Linux:

cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_PYTHON=ON -DENABLE_TESTS=ON ..
make -j 8

@rkazants tried this also still the build is failing

@MonalSD
Copy link
Contributor Author

MonalSD commented Apr 2, 2024

Screenshot from 2024-04-02 18-34-01
@rkazants please help on resolving this

Copy link
Contributor

This PR will be closed in a week because of 2 weeks of no activity.

@github-actions github-actions bot added the Stale label Apr 21, 2024
@MonalSD
Copy link
Contributor Author

MonalSD commented Apr 21, 2024

@rkazants how to proceed further.

@MonalSD
Copy link
Contributor Author

MonalSD commented Apr 21, 2024

@rkazants please review

@github-actions github-actions bot removed the Stale label Apr 22, 2024
Copy link
Contributor

github-actions bot commented May 7, 2024

This PR will be closed in a week because of 2 weeks of no activity.

@github-actions github-actions bot added the Stale label May 7, 2024
Copy link
Contributor

This PR was closed because it has been stalled for 2 week with no activity.

@github-actions github-actions bot closed this May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: TF FE OpenVINO TensorFlow FrontEnd category: TFL FE OpenVINO TensorFlow Lite FrontEnd ExternalPR External contributor Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Good First Issue][TF FE]: Support complex tensors for Reverse,ReverseV2 operations
3 participants