ArmNN
 24.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 <armnn/Logging.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>
Include dependency graph for Deserializer.cpp:

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::ScatterNdFunction ToScatterNdFunction (armnnSerializer::ScatterNdFunction function)
 
armnn::ComparisonOperation ToComparisonOperation (armnnSerializer::ComparisonOperation operation)
 
armnn::ReduceOperation ToReduceOperation (armnnSerializer::ReduceOperation operation)
 
armnn::LogicalBinaryOperation ToLogicalBinaryOperation (armnnSerializer::LogicalBinaryOperation operation)
 
armnn::BinaryOperation ToElementwiseBinaryOperation (armnnSerializer::BinaryOperation operation)
 
armnn::UnaryOperation ToElementwiseUnaryOperation (armnnSerializer::UnaryOperation operation)
 
armnn::PaddingMode ToPaddingMode (armnnSerializer::PaddingMode paddingMode)
 
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 178 of file Deserializer.cpp.

◆ 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 175 of file Deserializer.cpp.

◆ CHECK_GRAPH

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

Definition at line 184 of file Deserializer.cpp.

◆ CHECK_LAYERS

#define CHECK_LAYERS (   GRAPH,
  LAYERS_INDEX,
  LAYER_INDEX 
)    CheckLayers(GRAPH, LAYERS_INDEX, LAYER_INDEX, CHECK_LOCATION())

Definition at line 181 of file Deserializer.cpp.

◆ CHECK_TENSOR_PTR

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

Definition at line 172 of file Deserializer.cpp.