aboutsummaryrefslogtreecommitdiff
path: root/ConversionUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ConversionUtils.cpp')
-rw-r--r--ConversionUtils.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/ConversionUtils.cpp b/ConversionUtils.cpp
index b03ffbda..9cc6e286 100644
--- a/ConversionUtils.cpp
+++ b/ConversionUtils.cpp
@@ -62,7 +62,10 @@ ConstTensorPin::ConstTensorPin(const armnn::TensorInfo& tensorInfo,
const armnn::PermutationVector& mappings)
{
armnn::IgnoreUnused(numBytes);
- assert(tensorInfo.GetNumBytes() == numBytes);
+ if (tensorInfo.GetNumBytes() != numBytes)
+ {
+ ALOGW("The size of ConstTensor does not match its TensorInfo.");
+ }
const bool needsSwizzling = (mappings.GetSize() > 0);
if (needsSwizzling)