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][GPU]: Enable bitwise shift test in TF. #26194

Merged

Conversation

pkowalc1
Copy link
Contributor

@pkowalc1 pkowalc1 commented Aug 23, 2024

Details:

  • Enabled TF tests for Bitwise shift ops on GPU

This PR depends on #26251, which adds support for int16 and uint16 data types in elementwise shift op in gpu plugin.
Also depends on #26383, which fixes a bug related to i16 support for elementwise ops in GPU.

@pkowalc1 pkowalc1 requested a review from a team as a code owner August 23, 2024 07:15
@pkowalc1 pkowalc1 removed the request for review from a team August 23, 2024 07:15
@github-actions github-actions bot added the category: TF FE OpenVINO TensorFlow FrontEnd label Aug 23, 2024
@pkowalc1 pkowalc1 requested a review from mitruska August 23, 2024 07:15
@pkowalc1 pkowalc1 self-assigned this Aug 23, 2024
Copy link
Member

@rkazants rkazants left a comment

Choose a reason for hiding this comment

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

propose to merge Kasia's PR with expanding input types first. After that, we can merge this one as well. Thanks

@rkazants rkazants added this to the 2024.4 milestone Aug 23, 2024
Copy link
Contributor

@mitruska mitruska left a comment

Choose a reason for hiding this comment

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

The list of tested input types has been extended to:
[np.int8, np.int16, np.int32, np.int64, np.uint8, np.uint16, np.uint32, np.uint64])

Copy link
Member

@rkazants rkazants left a comment

Choose a reason for hiding this comment

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

Please fix

RuntimeError: Exception from src/inference/src/cpp/core.cpp:104:
Exception from src/inference/src/dev/plugin.cpp:53:
Check 'false' failed at src/plugins/intel_gpu/src/plugin/program_builder.cpp:185:
[GPU] ProgramBuilder build failed!
Program build failed(0_part_0):
4:1949:2: error: invalid operands to binary expression ('float' and 'float')
 DO_ELTWISE;
 ^~~~~~~~~~
4:1780:2: note: expanded from macro 'DO_ELTWISE'
....
----------------------------- Captured stdout call -----------------------------
OpenVINO version: 2024.4.0-16450-894fd44f4df-refs/pull/26194/head
Creating OV Core Engine...
Reading network files
Loading network

@rkazants rkazants requested a review from mitruska August 26, 2024 14:58
@pkowalc1 pkowalc1 added the WIP work in progress label Aug 27, 2024
if ie_device == 'GPU':
pytest.skip("149424: Bitwise ops are not supported on GPU")
if ie_device == 'GPU' and input_type in [np.uint64]:
pytest.skip("149424: uint64 type is not supported on GPU")
Copy link
Member

@rkazants rkazants Aug 29, 2024

Choose a reason for hiding this comment

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

please create an issue ticket for GPU plugin to support uint64. And point the right ticket number here.

Copy link
Member

@rkazants rkazants Sep 3, 2024

Choose a reason for hiding this comment

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

@pkowalc1, please create separate ticket for uint64 support on GPU and list this ticket number in the skipping code

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rkazants if you think there is a real need for uint64 support on GPU, please create a ticket and motivate it properly(e.g. maybe there is a business need). Currently, uint64 on GPU will be converted to int32 (info from V. Paramuzow), so there is a support but it it will not work properly in this case.

Copy link
Member

@rkazants rkazants Sep 4, 2024

Choose a reason for hiding this comment

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

The motivation is to be fully aligned with framework cases and capabilities. Our intention is to support not only known models but all other models about which we don't know.
Please create ticket and list here if you are responsible for resolving this task and if you want to change TF FE test sources. Otherwise, I can switch on these tests on GPU in my separate PR and create ticket on my own.
@mlukasze, fyi, I cannot allow to merge this PR without JIRA ticket about this limitation for uint64_t.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rkazants This PR is ready to be merged - all types except u64(as discussed above) should be working fine. However, if you want to create your own PR - no problem, please just close this one.

@pkowalc1 pkowalc1 removed the WIP work in progress label Aug 30, 2024
@rkazants rkazants added this pull request to the merge queue Sep 22, 2024
Merged via the queue into openvinotoolkit:master with commit 94749db Sep 22, 2024
132 checks passed
@pkowalc1 pkowalc1 deleted the bitwise_shift_gpu_enable_tf_tests branch October 25, 2024 06:46
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 do not merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants