Skip to content

Commit

Permalink
Add sanity check for the precisions
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnick committed Dec 8, 2023
1 parent 593e3ea commit 76331c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins/intel_cpu/src/graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -987,6 +987,7 @@ void Graph::PullOutputData(std::unordered_map<std::string, ov::SoPtr<ITensor>>&
Memory outBloMem(getEngine(), expected_desc_ptr, ext_blob_ptr, false);
outBloMem.load(intr_blob, false);
} else {
OPENVINO_ASSERT(srcPrec == dstPrec, "The precision of the CPU output tensor ", name, " is different from the external one");
size_t size_to_copy = intr_blob.getSize();
cpu_parallel_memcpy(ext_blob_ptr, intr_blob_ptr, size_to_copy);
}
Expand Down

0 comments on commit 76331c7

Please sign in to comment.