ArmNN
 21.08
Assert.hpp File Reference
#include <cassert>

Go to the source code of this file.

Namespaces

 armnn
 Copyright (c) 2021 ARM Limited and Contributors.
 

Macros

#define ARMNN_ASSERT(COND)   assert(COND)
 
#define ARMNN_ASSERT_MSG(COND, MSG)   assert((COND) && MSG)
 

Macro Definition Documentation

◆ ARMNN_ASSERT

#define ARMNN_ASSERT (   COND)    assert(COND)

Definition at line 14 of file Assert.hpp.

Referenced by BaseMemoryManager::Acquire(), ProfilingService::AddBackendProfilingContext(), Graph::AddCompatibilityLayers(), ProfilingService::AddCounterValue(), RefMemoryManager::Allocate(), ScopedTensorHandle::Allocate(), Graph::AllocateDynamicBuffers(), armnn::ApplyBackendOptimizations(), ApplyBias(), BaseMemoryManager::BaseMemoryManager(), armnn::CalculateSlotOptionForInput(), armnn::ChainReduceLayers(), armnn::test::ClassifierInferenceTestMain(), ClContextControl::ClContextControl(), CounterDirectory::Clear(), CompareActivationTestImpl(), armnn::ComputeAclAxis(), armnn::ComputePositiveAxis(), armnn::ComputeSoftmaxAclAxis(), armnnTfLiteParser::ComputeWrappedIndex(), armnn::Concatenate(), Connect(), FloatingPointConverter::ConvertBFloat16ToFloat32(), FloatingPointConverter::ConvertFloat16To32(), FloatingPointConverter::ConvertFloat32To16(), FloatingPointConverter::ConvertFloat32ToBFloat16(), armnn::CopyTensorContentsGeneric(), CreateNetworkImpl< IParser >::Create(), SendCounterPacket::CreateCategoryRecord(), SendCounterPacket::CreateCounterSetRecord(), SendCounterPacket::CreateDeviceRecord(), SendCounterPacket::CreateEventRecord(), OnnxParserImpl::CreateNetworkFromString(), armnn::CreateSupportedBackends(), SplitterLayer::CreateTensorHandles(), ConcatLayer::CreateTensorHandles(), Layer::CreateTensorHandles(), LoadedNetwork::CreateWorkingMemHandle(), armnn::DepthToSpace(), DepthwiseConvolution2dAsymmetricTestImpl(), DepthwiseConvolution2dTestImpl(), armnn::Dequantize(), Graph::DetachObservable(), armnn::DetectionPostProcess(), ProfilerImpl::EndEvent(), Graph::EraseLayer(), NeonConstantWorkload::Execute(), ClConstantWorkload::Execute(), NeonDepthwiseConvolutionWorkload::Execute(), ClDepthwiseConvolutionWorkload::Execute(), RefStridedSliceWorkload::ExecuteAsync(), RefLogSoftmaxWorkload::ExecuteAsync(), armnn::ExtractJsonObjects(), armnn::FindKernelMeasurements(), armnn::FindMeasurement(), armnn::FullyConnected(), armnn::Gather(), Generate3dPermuteVectorForConcat(), ProfilingService::GetAbsoluteCounterValue(), CounterDirectory::GetCategory(), MockCounterDirectory::GetCategory(), ConstTensorHandle::GetConstTensor(), CounterDirectory::GetCounter(), CounterDirectory::GetCounterSet(), ProfilingService::GetDeltaCounterValue(), CounterDirectory::GetDevice(), DataLayoutIndexed::GetIndex(), IDeserializer::DeserializerImpl::GetNetworkOutputBindingInfo(), armnnUtils::GetNumElementsAfter(), armnnUtils::GetNumElementsBetween(), TfLiteParserImpl::GetOutputTensorIds(), InferenceTestImage::GetPixelAs3Channels(), Graph::GetPosInGraph(), TensorInfo::GetQuantizationScale(), ProfilingService::GetSendTimelinePacket(), TensorHandle::GetTensor(), WorkingMemHandle::GetWorkingMemDescriptor(), SampleTensorHandle::Import(), ClImportTensorHandle::Import(), ProfilingService::IncrementCounterValue(), ElementwiseBaseLayer::InferOutputShapes(), ArgMinMaxLayer::InferOutputShapes(), ElementwiseUnaryLayer::InferOutputShapes(), StridedSliceLayer::InferOutputShapes(), PreluLayer::InferOutputShapes(), DepthToSpaceLayer::InferOutputShapes(), SpaceToBatchNdLayer::InferOutputShapes(), SpaceToDepthLayer::InferOutputShapes(), ComparisonLayer::InferOutputShapes(), LogicalBinaryLayer::InferOutputShapes(), MergeLayer::InferOutputShapes(), Pooling2dLayer::InferOutputShapes(), ResizeLayer::InferOutputShapes(), ShapeLayer::InferOutputShapes(), SliceLayer::InferOutputShapes(), BatchToSpaceNdLayer::InferOutputShapes(), StackLayer::InferOutputShapes(), TransposeLayer::InferOutputShapes(), PadLayer::InferOutputShapes(), PermuteLayer::InferOutputShapes(), TransposeConvolution2dLayer::InferOutputShapes(), DepthwiseConvolution2dLayer::InferOutputShapes(), Convolution2dLayer::InferOutputShapes(), FullyConnectedLayer::InferOutputShapes(), SplitterLayer::InferOutputShapes(), UnidirectionalSequenceLstmLayer::InferOutputShapes(), LstmLayer::InferOutputShapes(), ConcatLayer::InferOutputShapes(), QuantizedLstmLayer::InferOutputShapes(), QLstmLayer::InferOutputShapes(), Layer::InferOutputShapes(), armnn::InitializeArmComputeClTensorData(), armnn::InitializeArmComputeTensorData(), InputSlot::Insert(), armnn::InsertDebugLayerAfter(), Graph::InsertNewLayer(), RefLayerSupport::IsConcatSupported(), armnn::IsConcatSupported(), armnn::IsMergerSupported(), RefLayerSupport::IsStackSupported(), Layer::Layer(), IDeserializer::DeserializerImpl::LoadGraphFromBinary(), TfLiteParserImpl::LoadModel(), LoadedNetwork::MakeLoadedNetwork(), NeonTensorHandle::Manage(), RefTensorHandle::Map(), QuantizedMultiplierSmallerThanOne::operator*(), TypedIterator< const float, Decoder< float > >::operator++(), TypedIterator< const float, Decoder< float > >::operator+=(), TypedIterator< const float, Decoder< float > >::operator-=(), Graph::operator=(), TypedIterator< const float, Decoder< float > >::operator[](), armnn::Optimize(), MockBackend::OptimizeSubgraphView(), TfLiteParserImpl::OutputShapeOfReshape(), TfLiteParserImpl::OutputShapeOfSqueeze(), Optimizer::Pass(), RefFullyConnectedWorkload::PostAllocationConfigure(), YoloTestCase< Model >::ProcessResult(), armnn::Quantize(), QuantizedMultiplierSmallerThanOne::QuantizedMultiplierSmallerThanOne(), armnn::profiling::ReadBytes(), armnn::profiling::ReadUint16(), armnn::profiling::ReadUint32(), armnn::profiling::ReadUint64(), armnn::profiling::ReadUint8(), armnn::Reduce(), CounterDirectory::RegisterCategory(), MockCounterDirectory::RegisterCategory(), CounterDirectory::RegisterCounter(), MockCounterDirectory::RegisterCounter(), CounterDirectory::RegisterCounterSet(), MockCounterDirectory::RegisterCounterSet(), CounterDirectory::RegisterDevice(), MockCounterDirectory::RegisterDevice(), BaseMemoryManager::Release(), armnn::Resize(), OptimizeConsecutiveReshapesImpl::Run(), OptimizeInverseConversionsImpl::Run(), PermuteAndBatchToSpaceAsDepthToSpaceImpl< PermuteType >::Run(), FuseBatchNorm< ConvLayer, ArmnnType, T >::Run(), RuntimeImpl::RuntimeImpl(), armnn::SelectTensorHandleStrategy(), SendTimelinePacket::SendTimelinePacket(), ProfilingService::SetCounterValue(), PerAxisIterator< const int8_t, Decoder< float > >::SetIndexOnMem(), armnn::SetLogFilter(), SimpleConvolution2dTestImpl(), armnn::Slice(), armnn::Split(), armnn::Splitter(), NeonTimer::Start(), CommandHandler::Stop(), armnnUtils::Strip(), Graph::SubstituteSubgraph(), ProfilingService::SubtractCounterValue(), ProfilingService::SwapProfilingConnectionFactory(), TensorBufferArrayView< DataType >::TensorBufferArrayView(), TEST_SUITE(), ProfilingService::Update(), ElementwiseBaseLayer::ValidateTensorShapesFromInputs(), ActivationLayer::ValidateTensorShapesFromInputs(), ConvertFp32ToFp16Layer::ValidateTensorShapesFromInputs(), FillLayer::ValidateTensorShapesFromInputs(), FakeQuantizationLayer::ValidateTensorShapesFromInputs(), SwitchLayer::ValidateTensorShapesFromInputs(), AbsLayer::ValidateTensorShapesFromInputs(), ConvertFp32ToBf16Layer::ValidateTensorShapesFromInputs(), MemCopyLayer::ValidateTensorShapesFromInputs(), ResizeLayer::ValidateTensorShapesFromInputs(), DebugLayer::ValidateTensorShapesFromInputs(), MergeLayer::ValidateTensorShapesFromInputs(), BatchToSpaceNdLayer::ValidateTensorShapesFromInputs(), DequantizeLayer::ValidateTensorShapesFromInputs(), SoftmaxLayer::ValidateTensorShapesFromInputs(), Pooling2dLayer::ValidateTensorShapesFromInputs(), FloorLayer::ValidateTensorShapesFromInputs(), UnmapLayer::ValidateTensorShapesFromInputs(), RsqrtLayer::ValidateTensorShapesFromInputs(), CastLayer::ValidateTensorShapesFromInputs(), ConvertFp16ToFp32Layer::ValidateTensorShapesFromInputs(), ShapeLayer::ValidateTensorShapesFromInputs(), SliceLayer::ValidateTensorShapesFromInputs(), StackLayer::ValidateTensorShapesFromInputs(), MapLayer::ValidateTensorShapesFromInputs(), InstanceNormalizationLayer::ValidateTensorShapesFromInputs(), ConvertBf16ToFp32Layer::ValidateTensorShapesFromInputs(), L2NormalizationLayer::ValidateTensorShapesFromInputs(), MemImportLayer::ValidateTensorShapesFromInputs(), NormalizationLayer::ValidateTensorShapesFromInputs(), PadLayer::ValidateTensorShapesFromInputs(), LogSoftmaxLayer::ValidateTensorShapesFromInputs(), TransposeLayer::ValidateTensorShapesFromInputs(), ReshapeLayer::ValidateTensorShapesFromInputs(), PermuteLayer::ValidateTensorShapesFromInputs(), StridedSliceLayer::ValidateTensorShapesFromInputs(), ArgMinMaxLayer::ValidateTensorShapesFromInputs(), ElementwiseUnaryLayer::ValidateTensorShapesFromInputs(), DepthwiseConvolution2dLayer::ValidateTensorShapesFromInputs(), LogicalBinaryLayer::ValidateTensorShapesFromInputs(), SpaceToDepthLayer::ValidateTensorShapesFromInputs(), TransposeConvolution2dLayer::ValidateTensorShapesFromInputs(), DepthToSpaceLayer::ValidateTensorShapesFromInputs(), PreluLayer::ValidateTensorShapesFromInputs(), ComparisonLayer::ValidateTensorShapesFromInputs(), SpaceToBatchNdLayer::ValidateTensorShapesFromInputs(), Convolution2dLayer::ValidateTensorShapesFromInputs(), SplitterLayer::ValidateTensorShapesFromInputs(), FullyConnectedLayer::ValidateTensorShapesFromInputs(), UnidirectionalSequenceLstmLayer::ValidateTensorShapesFromInputs(), LstmLayer::ValidateTensorShapesFromInputs(), BatchNormalizationLayer::ValidateTensorShapesFromInputs(), QuantizedLstmLayer::ValidateTensorShapesFromInputs(), QLstmLayer::ValidateTensorShapesFromInputs(), Layer::VerifyLayerConnections(), VerifyTimelineEntityBinaryPacketData(), VerifyTimelineEventBinaryPacket(), VerifyTimelineEventClassBinaryPacketData(), VerifyTimelineHeaderBinary(), VerifyTimelineLabelBinaryPacketData(), VerifyTimelineRelationshipBinaryPacketData(), armnn::profiling::WriteBytes(), FileOnlyProfilingConnection::WritePacket(), armnn::profiling::WriteUint16(), armnn::profiling::WriteUint32(), armnn::profiling::WriteUint64(), armnn::profiling::WriteUint8(), Graph::LayerInGraph< InputLayer >::~LayerInGraph(), and Graph::LayerInGraph< OutputLayer >::~LayerInGraph().

◆ ARMNN_ASSERT_MSG

#define ARMNN_ASSERT_MSG (   COND,
  MSG 
)    assert((COND) && MSG)

Definition at line 15 of file Assert.hpp.

Referenced by RefMemoryManager::Pool::Acquire(), Graph::AddCompatibilityLayers(), ApplyBias(), armnn::AssignBackends(), armnn::BatchToSpaceNd(), armnn::CalculateEdgeStrategy(), OutputSlot::CalculateIndexOnOwner(), armnn::CalculateSlotOption(), armnn::CalculateSlotOptionForInput(), ClassifierTestCase< TTestCaseDatabase, TModel >::ClassifierTestCase(), ClBackendContext::ClBackendContext(), Concatenate(), armnn::ConvertWeightTensorFromArmnnToAcl(), armnnOnnxParser::CreateConstTensorImpl(), ConcatLayer::CreateWorkload(), TransposeConvolution2dLayer::CreateWorkload(), DepthwiseConvolution2dLayer::CreateWorkload(), Convolution2dLayer::CreateWorkload(), BatchNormalizationLayer::CreateWorkload(), LoadedNetwork::EnqueueWorkload(), ClConstantWorkload::Execute(), FirstInputTypedWorkload< QueueDescriptor, DataType >::FirstInputTypedWorkload(), armnn::ForEachLayerInput(), LoadedNetwork::FreeWorkingMemory(), Generate3dPermuteVectorForConcat(), armnn::GetBiasDataType(), armnn::GetBiasTypeFromWeightsType(), LoadedNetwork::GetInputTensorInfo(), armnn::GetLayerTypeAsCString(), armnn::optimizations::pad_fold::GetLowestElement(), IDeserializer::DeserializerImpl::GetNetworkOutputBindingInfo(), IDeserializer::DeserializerImpl::GetNormalizationDescriptor(), LoadedNetwork::GetOutputTensorInfo(), RefMemoryManager::Pool::GetPointer(), IDeserializer::DeserializerImpl::GetPoolingDescriptor(), armnnUtils::GetUnsignedAxis(), armnn::test::InferenceTest(), ElementwiseBaseLayer::InferOutputShapes(), LogicalBinaryLayer::InferOutputShapes(), ComparisonLayer::InferOutputShapes(), PreluLayer::InferOutputShapes(), BatchToSpaceNdLayer::InferOutputShapes(), Pooling2dLayer::InferOutputShapes(), TransposeConvolution2dLayer::InferOutputShapes(), DepthwiseConvolution2dLayer::InferOutputShapes(), Convolution2dLayer::InferOutputShapes(), armnn::InitializeArmComputeTensorData(), TfLiteParserImpl::LoadModel(), armnn::LogSoftmax(), main(), armnn::MakeDecoder(), armnn::MakeEncoder(), RefTensorHandle::Manage(), OutputSlot::MoveAllConnections(), MultiTypedWorkload< QueueDescriptor, InputDataType, OutputDataType >::MultiTypedWorkload(), NeedPermuteForConcat(), armnn::test::ParseCommandLine(), PermuteInputsForConcat(), PermuteOutputForConcat(), armnn::PermuteTensor(), PermuteTensorData(), ProgramOptions::ProgramOptions(), ParserFlatbuffersSerializeFixture::ReadStringToBinary(), ParserFlatbuffersFixture::ReadStringToBinary(), RefMemoryManager::Pool::Release(), OriginsDescriptor::ReorderOrigins(), RefMemoryManager::Pool::Reserve(), FuseBatchNorm< ConvLayer, ArmnnType, T >::Run(), FoldPadIntoConvolution2dImpl::Run(), FoldPadIntoDepthwiseConvolution2dImpl::Run(), ConstTensorHandle::SetConstMemory(), armnn::Softmax(), Graph::SubstituteSubgraph(), TypedWorkload< DebugQueueDescriptor, DataType >::TypedWorkload(), OutputSlot::ValidateTensorShape(), ReduceLayer::ValidateTensorShapesFromInputs(), SwitchLayer::ValidateTensorShapesFromInputs(), MeanLayer::ValidateTensorShapesFromInputs(), DetectionPostProcessLayer::ValidateTensorShapesFromInputs(), TransposeConvolution2dLayer::ValidateTensorShapesFromInputs(), DepthwiseConvolution2dLayer::ValidateTensorShapesFromInputs(), Convolution2dLayer::ValidateTensorShapesFromInputs(), UnidirectionalSequenceLstmLayer::ValidateTensorShapesFromInputs(), LstmLayer::ValidateTensorShapesFromInputs(), QuantizedLstmLayer::ValidateTensorShapesFromInputs(), and QLstmLayer::ValidateTensorShapesFromInputs().