Skip to content

Commit

Permalink
[GPU] Use get_output_pshape() in crop_in_place_optimization::match() …
Browse files Browse the repository at this point in the history
…to check user output dynamic shape (openvinotoolkit#25632)

### Details:
- Use get_output_pshape() in crop_in_place_optimization::match() to
check user output dynamic shape because user would have
valid_output_layouts=false

### Tickets:
 - 146725
  • Loading branch information
wilson-seok authored Jul 26, 2024
1 parent e110479 commit 4ad2202
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ bool crop_in_place_optimization::match(const program_node& node,
for (auto user : node.get_users()) {
// If the user node's output shape is already static, the padding
// w/ dyn pad mask will not be propagated properly at runtime
if (node.is_dynamic() && !user->get_output_layout().is_dynamic())
if (node.is_dynamic() && !user->get_output_pshape().is_dynamic())
return false;
// do not optimize when next node is concatenation which is not output
if (user->is_type<concatenation>() && !user->is_output())
Expand Down

0 comments on commit 4ad2202

Please sign in to comment.