ArmNN
 22.05.01
OnnxParser.cpp File Reference
#include "OnnxParser.hpp"
#include "armnnOnnxParser/Version.hpp"
#include <armnn/Descriptors.hpp>
#include <armnn/utility/Assert.hpp>
#include <armnn/utility/NumericCast.hpp>
#include <ParserHelper.hpp>
#include <VerificationHelpers.hpp>
#include <fmt/format.h>
#include <google/protobuf/text_format.h>
#include <google/protobuf/io/zero_copy_stream_impl.h>
#include <iostream>
#include <numeric>
#include <armnnUtils/Permute.hpp>

Go to the source code of this file.

Namespaces

 armnnOnnxParser
 

Macros

#define CHECK_VALID_DATATYPE(NODE, TENSOR, ACTUAL, ...)   CheckValidDataType({__VA_ARGS__}, ACTUAL, #__VA_ARGS__, NODE, TENSOR, CHECK_LOCATION())
 
#define STR_LIST(...)   StrTypeListPair(#__VA_ARGS__, {__VA_ARGS__})
 
#define VALID_INPUTS(NODE, VALID_INPUTS)
 

Functions

template<typename T >
std::pair< armnn::ConstTensor, std::unique_ptr< T[]> > CreateConstTensorImpl (const T *bufferPtr, armnn::TensorInfo &tensorInfo, const armnn::Optional< armnn::PermutationVector &> permutationVector)
 

Macro Definition Documentation

◆ CHECK_VALID_DATATYPE

#define CHECK_VALID_DATATYPE (   NODE,
  TENSOR,
  ACTUAL,
  ... 
)    CheckValidDataType({__VA_ARGS__}, ACTUAL, #__VA_ARGS__, NODE, TENSOR, CHECK_LOCATION())

◆ STR_LIST

#define STR_LIST (   ...)    StrTypeListPair(#__VA_ARGS__, {__VA_ARGS__})

Definition at line 120 of file OnnxParser.cpp.

Referenced by OnnxParserImpl::CreateNetworkFromString().

◆ VALID_INPUTS

#define VALID_INPUTS (   NODE,
  VALID_INPUTS 
)
Value:
OnnxParserImpl::ValidateInputs(NODE, \
#define VALID_INPUTS(NODE, VALID_INPUTS)
Definition: OnnxParser.cpp:482
#define CHECK_LOCATION()
Definition: Exceptions.hpp:203

Definition at line 482 of file OnnxParser.cpp.

Referenced by OnnxParserImpl::CreateNetworkFromString().