Skip to content

Commit 5cabcc0

Browse files
throw exception
1 parent 0520eb1 commit 5cabcc0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/plugins/intel_cpu/src/infer_request.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,9 @@ void InferRequestBase::changeDefaultPtr() {
278278
auto itr = outMemMngrMap.find(it.first);
279279
if (itr != outMemMngrMap.end()) {
280280
outputMemMngr = std::dynamic_pointer_cast<OutputMemoryMngr>(itr->second);
281-
IE_ASSERT(outputMemMngr);
281+
OPENVINO_ASSERT(outputMemMngr, "output memmanager should not be empty.");
282+
} else {
283+
OPENVINO_THROW("Cannot find output memmanager for output " + it.first + " !");
282284
}
283285

284286
if (canBeInPlace) {

0 commit comments

Comments
 (0)