From 8c5fcdc5c9839838c16a44853414da649fad6729 Mon Sep 17 00:00:00 2001 From: Ilya Churaev Date: Mon, 21 Jun 2021 15:05:16 +0300 Subject: [PATCH] Fixed incorrect check in IE backend (#6241) --- ngraph/test/runtime/ie/ie_tensor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ngraph/test/runtime/ie/ie_tensor.cpp b/ngraph/test/runtime/ie/ie_tensor.cpp index fd4e8468f92..a7be07005e2 100644 --- a/ngraph/test/runtime/ie/ie_tensor.cpp +++ b/ngraph/test/runtime/ie/ie_tensor.cpp @@ -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: ",