diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/armnn/utility/Assert.hpp | 2 | ||||
-rw-r--r-- | include/armnnUtils/DataLayoutIndexed.hpp | 10 | ||||
-rw-r--r-- | include/armnnUtils/TensorUtils.hpp | 2 |
3 files changed, 6 insertions, 8 deletions
diff --git a/include/armnn/utility/Assert.hpp b/include/armnn/utility/Assert.hpp index 4d2f47b90b..455775f9b7 100644 --- a/include/armnn/utility/Assert.hpp +++ b/include/armnn/utility/Assert.hpp @@ -12,7 +12,7 @@ namespace armnn #ifndef NDEBUG # define ARMNN_ASSERT(COND) assert(COND) -# define ARMNN_ASSERT_MSG(COND, MSG) assert(COND && MSG) +# define ARMNN_ASSERT_MSG(COND, MSG) assert((COND) && MSG) #else # define ARMNN_ASSERT(COND) # define ARMNN_ASSERT_MSG(COND, MSG) diff --git a/include/armnnUtils/DataLayoutIndexed.hpp b/include/armnnUtils/DataLayoutIndexed.hpp index c6701f7d5c..e377cc5a31 100644 --- a/include/armnnUtils/DataLayoutIndexed.hpp +++ b/include/armnnUtils/DataLayoutIndexed.hpp @@ -8,7 +8,7 @@ #include <armnn/Types.hpp> #include <armnn/Tensor.hpp> -#include <boost/assert.hpp> +#include <armnn/utility/Assert.hpp> namespace armnnUtils { @@ -28,12 +28,12 @@ public: unsigned int batchIndex, unsigned int channelIndex, unsigned int heightIndex, unsigned int widthIndex) const { - BOOST_ASSERT( batchIndex < shape[0] || ( shape[0] == 0 && batchIndex == 0 ) ); - BOOST_ASSERT( channelIndex < shape[m_ChannelsIndex] || + ARMNN_ASSERT( batchIndex < shape[0] || ( shape[0] == 0 && batchIndex == 0 ) ); + ARMNN_ASSERT( channelIndex < shape[m_ChannelsIndex] || ( shape[m_ChannelsIndex] == 0 && channelIndex == 0) ); - BOOST_ASSERT( heightIndex < shape[m_HeightIndex] || + ARMNN_ASSERT( heightIndex < shape[m_HeightIndex] || ( shape[m_HeightIndex] == 0 && heightIndex == 0) ); - BOOST_ASSERT( widthIndex < shape[m_WidthIndex] || + ARMNN_ASSERT( widthIndex < shape[m_WidthIndex] || ( shape[m_WidthIndex] == 0 && widthIndex == 0) ); /// Offset the given indices appropriately depending on the data layout diff --git a/include/armnnUtils/TensorUtils.hpp b/include/armnnUtils/TensorUtils.hpp index fbfb8f4e1e..cc5f780f10 100644 --- a/include/armnnUtils/TensorUtils.hpp +++ b/include/armnnUtils/TensorUtils.hpp @@ -7,8 +7,6 @@ #include <armnn/TypesUtils.hpp> -#include <boost/assert.hpp> - namespace armnnUtils { armnn::TensorShape GetTensorShape(unsigned int numberOfBatches, |