diff options
Diffstat (limited to 'src/armnn/Tensor.cpp')
-rw-r--r-- | src/armnn/Tensor.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/armnn/Tensor.cpp b/src/armnn/Tensor.cpp index 3b116d90e0..f75fc60ef7 100644 --- a/src/armnn/Tensor.cpp +++ b/src/armnn/Tensor.cpp @@ -465,8 +465,15 @@ float TensorInfo::GetQuantizationScale() const // NOTE: old default for backward compatibility return 1.0f; } - + // If this tensor includes multiples scales then you should be calling GetQuantizationScales. + // This should be an exception not an assert but unfortunately it breaks many tests. + // ToDo: IVGCVSW-8323 ARMNN_ASSERT(!HasMultipleQuantizationScales()); +// if (HasMultipleQuantizationScales()) +// { +// throw RuntimeException("Invalid call to GetQuantizationScale on a tensor with multiple scale values. Use " +// "GetQuantizationScales instead."); +// } return m_Quantization.m_Scales[0]; } |