Fixed incorrect check in IE backend (#6241)
This commit is contained in:
parent
d71ac2e2c1
commit
8c5fcdc5c9
@ -36,7 +36,7 @@ void runtime::ie::IETensor::write(const void* src, size_t bytes)
|
|||||||
{
|
{
|
||||||
m_data = AlignedBuffer(bytes);
|
m_data = AlignedBuffer(bytes);
|
||||||
}
|
}
|
||||||
NGRAPH_CHECK(m_data.size() <= bytes,
|
NGRAPH_CHECK(bytes <= m_data.size(),
|
||||||
"Buffer over-write. The buffer size: ",
|
"Buffer over-write. The buffer size: ",
|
||||||
m_data.size(),
|
m_data.size(),
|
||||||
" is lower than the number of bytes to write: ",
|
" is lower than the number of bytes to write: ",
|
||||||
|
Loading…
Reference in New Issue
Block a user