Skip to content

Commit

Permalink
Reallocate only defined mem
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnick committed Aug 16, 2024
1 parent bfe54a0 commit f6a8dee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/intel_cpu/src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ void Node::updateShapes() {
}
// TODO: conceptually this is a very bad solution
auto block = mem->getMemoryBlock();
if (nullptr == block->getRawPtr()) {
if (nullptr == block->getRawPtr() && mem->isDefined()) {
block->resize(mem->getSize());
}
}
Expand Down

0 comments on commit f6a8dee

Please sign in to comment.