Skip to content

Commit

Permalink
[GPU] Fix memory leak (#27631)
Browse files Browse the repository at this point in the history
### Details:
 - Fix memory leak and improve memory usage with continuous inference
 - Backport of #27536

### Tickets:
 - 148552
  • Loading branch information
dnkurek authored Nov 20, 2024
1 parent 5607ec8 commit e83c08e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ inline void update_shapes(kernel_selector::Params& p, const kernel_impl_params&
const auto& fused_prim = impl_param.fused_desc[i];
auto& fd = bp.fused_ops[i];
fd.output_tensor = convert_data_tensor(fused_prim.output_layout);
fd.tensors.clear();
for (size_t i = fd.dep_idx_start; i < fd.dep_idx_start + fd.dep_size; i++) {
fd.tensors.push_back(convert_data_tensor(impl_param.get_input_layout(i)));
}
Expand Down

0 comments on commit e83c08e

Please sign in to comment.