Skip to content

Commit

Permalink
[GPU] Add input memory nullptr check in update_output_memory() of str…
Browse files Browse the repository at this point in the history
…ided_slice (#27779)

### Details:
- Add input memory nullptr check in update_output_memory() of
strided_slice

### Tickets:
 - 157643
  • Loading branch information
wilson-seok authored Nov 29, 2024
1 parent 2d4f1b5 commit 301d6de
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/plugins/intel_gpu/src/graph/strided_slice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,10 @@ void strided_slice_inst::on_execute() {
void strided_slice_inst::update_output_memory() {
if (!can_be_optimized())
return;

if (node->get_program().is_new_shape_infer() && input_memory_ptr() == nullptr)
return;

if (static_cast<bool>(_outputs[0]) && _network.get_engine().is_the_same_buffer(output_memory(), input_memory()))
return;

Expand Down

0 comments on commit 301d6de

Please sign in to comment.