From 4d07e5e0e2f32184e395f44cc50eedf3de284d22 Mon Sep 17 00:00:00 2001 From: Narumol Prangnawarat Date: Mon, 6 Apr 2020 16:46:21 +0100 Subject: IVGCVSW-4485 Remove Boost assert Signed-off-by: Narumol Prangnawarat Change-Id: If602024a339df7548333e470545f9400c3daf7b3 --- Utils.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Utils.cpp') diff --git a/Utils.cpp b/Utils.cpp index 00d61c7b..a7df499c 100644 --- a/Utils.cpp +++ b/Utils.cpp @@ -11,6 +11,7 @@ #include #include +#include #include #include @@ -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") -- cgit v1.2.1