ArmNN
 20.08
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 <ParserHelper.hpp>
#include <VerificationHelpers.hpp>
#include <boost/format.hpp>
#include <boost/numeric/conversion/cast.hpp>
#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::UnaryOperation ToUnaryOperation (armnnSerializer::UnaryOperation operation)
 
armnn::ResizeMethod ToResizeMethod (armnnSerializer::ResizeMethod method)
 
armnn::TensorInfo ToTensorInfo (Deserializer::TensorRawPtr tensorPtr)
 
armnn::ConstTensor ToConstTensor (Deserializer::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 153 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 150 of file Deserializer.cpp.

Referenced by armnnDeserializer::ToConstTensor().

◆ CHECK_GRAPH

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

Definition at line 159 of file Deserializer.cpp.

Referenced by Deserializer::GetNetworkOutputBindingInfo().

◆ CHECK_LAYERS

◆ CHECK_TENSOR_PTR

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

Definition at line 147 of file Deserializer.cpp.

Referenced by armnnDeserializer::ToTensorInfo().