Fixed incorrect check in IE backend (#6241)

This commit is contained in:
Ilya Churaev 2021-06-21 15:05:16 +03:00 committed by GitHub
parent d71ac2e2c1
commit 8c5fcdc5c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ void runtime::ie::IETensor::write(const void* src, size_t bytes)
{
m_data = AlignedBuffer(bytes);
}
NGRAPH_CHECK(m_data.size() <= bytes,
NGRAPH_CHECK(bytes <= m_data.size(),
"Buffer over-write. The buffer size: ",
m_data.size(),
" is lower than the number of bytes to write: ",