aboutsummaryrefslogtreecommitdiff
path: root/Utils.cpp
diff options
context:
space:
mode:
authorNarumol Prangnawarat <narumol.prangnawarat@arm.com>2020-04-06 16:46:21 +0100
committerNarumol Prangnawarat <narumol.prangnawarat@arm.com>2020-04-07 14:55:36 +0000
commit4d07e5e0e2f32184e395f44cc50eedf3de284d22 (patch)
tree880d7a30c3d36f1892312da7ed6d04d7dbf2f040 /Utils.cpp
parentdbae2476905291b82e4b9bb7828be83ae7ddd84f (diff)
downloadandroid-nn-driver-4d07e5e0e2f32184e395f44cc50eedf3de284d22.tar.gz
IVGCVSW-4485 Remove Boost assert
Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com> Change-Id: If602024a339df7548333e470545f9400c3daf7b3
Diffstat (limited to 'Utils.cpp')
-rw-r--r--Utils.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/Utils.cpp b/Utils.cpp
index 00d61c7b..a7df499c 100644
--- a/Utils.cpp
+++ b/Utils.cpp
@@ -11,6 +11,7 @@
#include <armnnUtils/Permute.hpp>
#include <armnn/Utils.hpp>
+#include <armnn/utility/Assert.hpp>
#include <cassert>
#include <cerrno>
@@ -146,7 +147,7 @@ armnn::TensorInfo GetTensorInfoForOperand(const V1_2::Operand& operand)
if (perChannel)
{
// ExtraParams is expected to be of type channelQuant
- BOOST_ASSERT(operand.extraParams.getDiscriminator() ==
+ ARMNN_ASSERT(operand.extraParams.getDiscriminator() ==
V1_2::Operand::ExtraParams::hidl_discriminator::channelQuant);
auto perAxisQuantParams = operand.extraParams.channelQuant();
@@ -210,7 +211,7 @@ armnn::TensorInfo GetTensorInfoForOperand(const V1_3::Operand& operand)
if (perChannel)
{
// ExtraParams is expected to be of type channelQuant
- BOOST_ASSERT(operand.extraParams.getDiscriminator() ==
+ ARMNN_ASSERT(operand.extraParams.getDiscriminator() ==
V1_2::Operand::ExtraParams::hidl_discriminator::channelQuant);
auto perAxisQuantParams = operand.extraParams.channelQuant();
@@ -415,7 +416,7 @@ void DumpJsonProfilingIfRequired(bool gpuProfilingEnabled,
return;
}
- BOOST_ASSERT(profiler);
+ ARMNN_ASSERT(profiler);
// Set the name of the output profiling file.
const std::string fileName = boost::str(boost::format("%1%/%2%_%3%.json")