[CPU] Improve some error messages (#14668)

This commit is contained in:
Egor Duplenskii 2022-12-19 11:56:40 +01:00 committed by GitHub
parent 67f467b2f3
commit 4d44c70c32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -185,7 +185,7 @@ bool MemoryMngrWithReuse::resize(size_t size) {
if (size > _memUpperBound) { if (size > _memUpperBound) {
void *ptr = dnnl::impl::malloc(size, cacheLineSize); void *ptr = dnnl::impl::malloc(size, cacheLineSize);
if (!ptr) { if (!ptr) {
throw std::bad_alloc(); IE_THROW() << "Failed to allocate " << size << " bytes of memory";
} }
_memUpperBound = size; _memUpperBound = size;
_useExternalStorage = false; _useExternalStorage = false;

View File

@ -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 { int getExecIndex() const {