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
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/plugins/intel_gpu/src/graph/primitive_inst.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ void primitive_inst::update_shape() {
if (i >= _deps.size())
continue;

if (_deps[i].first->get_node().is_in_shape_of_subgraph()) {
if (_deps[i].first->get_node().is_in_shape_of_subgraph() && _deps[i].first->get_node().get_selected_impl()->is_cpu()) {
bool can_skip = true;
const auto& insts = _deps[i].first->dependant_shape_of_insts;
for (auto& inst : insts) {
Expand Down Expand Up @@ -429,7 +429,7 @@ 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().get_selected_impl()->is_cpu()) {
has_runtime_deps = true;

// Events may be not created for in-order queue, so take them for OOO queue only
Expand Down
Loading