[CPU] Improve some error messages (#14668)
This commit is contained in:
parent
67f467b2f3
commit
4d44c70c32
@ -185,7 +185,7 @@ bool MemoryMngrWithReuse::resize(size_t size) {
|
||||
if (size > _memUpperBound) {
|
||||
void *ptr = dnnl::impl::malloc(size, cacheLineSize);
|
||||
if (!ptr) {
|
||||
throw std::bad_alloc();
|
||||
IE_THROW() << "Failed to allocate " << size << " bytes of memory";
|
||||
}
|
||||
_memUpperBound = size;
|
||||
_useExternalStorage = false;
|
||||
|
@ -415,7 +415,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
IE_THROW() << "Primitive descriptor was not found for node " << getName() << ".";
|
||||
IE_THROW() << "Primitive descriptor was not found for node " << getName() << " with type " << NameFromType(getType()) << ".";
|
||||
}
|
||||
|
||||
int getExecIndex() const {
|
||||
|
Loading…
Reference in New Issue
Block a user