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

[GPU] Consider the node which is shape_of subgraph and ocl_impl in update_shape() #27551

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

Conversation

wilson-seok
Copy link
Contributor

Details:

  • Consider the node which is shape_of subgraph and ocl_impl in update_shape()

Tickets:

  • 154135

@wilson-seok wilson-seok requested review from a team as code owners November 14, 2024 08:17
@github-actions github-actions bot added the category: GPU OpenVINO GPU plugin label Nov 14, 2024
@@ -429,7 +429,8 @@ void primitive_inst::update_shape() {
continue;
}

if (!get_node().is_type<shape_of>() && !dep->get_node().is_in_shape_of_subgraph()) {
if (!get_node().is_type<shape_of>() &&
!(dep->get_node().is_in_shape_of_subgraph() && dep->get_node().get_selected_impl()->is_cpu())) {
Copy link
Contributor

Choose a reason for hiding this comment

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

In this case, I think we can just replace it with
!get_node().is_type<shape_of>() && !dep->get_node().get_selected_impl()->is_cpu()
Because if the dep is cpu, the execution is already finished.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated! Thanks!

@yeonbok
Copy link
Contributor

yeonbok commented Nov 14, 2024

Please add a unittest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: GPU OpenVINO GPU plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants