ArmNN
 21.02
Deserializer.cpp File Reference
#include "Deserializer.hpp"
#include <armnn/Descriptors.hpp>
#include <armnn/Exceptions.hpp>
#include <armnn/TypesUtils.hpp>
#include <armnn/LstmParams.hpp>
#include <armnn/QuantizedLstmParams.hpp>
#include <armnnUtils/Permute.hpp>
#include <armnnUtils/Transpose.hpp>
#include <armnn/utility/Assert.hpp>
#include <armnn/utility/IgnoreUnused.hpp>
#include <armnn/utility/NumericCast.hpp>
#include <ParserHelper.hpp>
#include <VerificationHelpers.hpp>
#include <fmt/format.h>
#include <fstream>
#include <algorithm>
#include <limits>
#include <numeric>

Go to the source code of this file.

Namespaces

 armnnDeserializer
 

Macros

#define CHECK_TENSOR_PTR(TENSOR_PTR)   CheckTensorPtr(TENSOR_PTR, CHECK_LOCATION())
 
#define CHECK_CONST_TENSOR_SIZE(CONST_TENSOR_SIZE, TENSOR_SIZE)   CheckConstTensorSize(CONST_TENSOR_SIZE, TENSOR_SIZE, CHECK_LOCATION())
 
#define CHECK_CONST_TENSOR_PTR(TENSOR_PTR)   CheckConstTensorPtr(TENSOR_PTR, CHECK_LOCATION())
 
#define CHECK_LAYERS(GRAPH, LAYERS_INDEX, LAYER_INDEX)   CheckLayers(GRAPH, LAYERS_INDEX, LAYER_INDEX, CHECK_LOCATION())
 
#define CHECK_GRAPH(GRAPH, LAYERS_INDEX)   CheckGraph(GRAPH, LAYERS_INDEX, CHECK_LOCATION())
 

Functions

bool CheckShape (const armnn::TensorShape &actual, const std::vector< uint32_t > &expected)
 
armnn::DataLayout ToDataLayout (armnnSerializer::DataLayout dataLayout)
 
armnn::ActivationFunction ToActivationFunction (armnnSerializer::ActivationFunction function)
 
armnn::ArgMinMaxFunction ToArgMinMaxFunction (armnnSerializer::ArgMinMaxFunction function)
 
armnn::ComparisonOperation ToComparisonOperation (armnnSerializer::ComparisonOperation operation)
 
armnn::ReduceOperation ToReduceOperation (armnnSerializer::ReduceOperation operation)
 
armnn::LogicalBinaryOperation ToLogicalBinaryOperation (armnnSerializer::LogicalBinaryOperation operation)
 
armnn::UnaryOperation ToUnaryOperation (armnnSerializer::UnaryOperation operation)
 
armnn::ResizeMethod ToResizeMethod (armnnSerializer::ResizeMethod method)
 
armnn::TensorInfo ToTensorInfo (TensorRawPtr tensorPtr)
 
armnn::ConstTensor ToConstTensor (ConstTensorRawPtr constTensorPtr)
 
const armnnSerializer::OriginsDescriptor * GetOriginsDescriptor (const armnnSerializer::SerializedGraph *graph, unsigned int layerIndex)
 

Macro Definition Documentation

◆ CHECK_CONST_TENSOR_PTR

#define CHECK_CONST_TENSOR_PTR (   TENSOR_PTR)    CheckConstTensorPtr(TENSOR_PTR, CHECK_LOCATION())

Definition at line 177 of file Deserializer.cpp.

Referenced by armnnDeserializer::ToConstTensor().

◆ CHECK_CONST_TENSOR_SIZE

#define CHECK_CONST_TENSOR_SIZE (   CONST_TENSOR_SIZE,
  TENSOR_SIZE 
)    CheckConstTensorSize(CONST_TENSOR_SIZE, TENSOR_SIZE, CHECK_LOCATION())

Definition at line 174 of file Deserializer.cpp.

Referenced by armnnDeserializer::ToConstTensor().

◆ CHECK_GRAPH

#define CHECK_GRAPH (   GRAPH,
  LAYERS_INDEX 
)    CheckGraph(GRAPH, LAYERS_INDEX, CHECK_LOCATION())

◆ CHECK_LAYERS

◆ CHECK_TENSOR_PTR

#define CHECK_TENSOR_PTR (   TENSOR_PTR)    CheckTensorPtr(TENSOR_PTR, CHECK_LOCATION())

Definition at line 171 of file Deserializer.cpp.

Referenced by armnnDeserializer::ToTensorInfo().