TensorRT  7.2.1.6
NvOnnxParser.h File Reference
#include "NvInfer.h"
#include <stddef.h>
#include <vector>

Go to the source code of this file.

Classes

class  nvonnxparser::IParserError
 an object containing information about an error More...
 
class  nvonnxparser::IParser
 an object for parsing ONNX models into a TensorRT network definition More...
 

Namespaces

 nvonnxparser
 The TensorRT ONNX parser API namespace.
 

Macros

#define NV_ONNX_PARSER_MAJOR   0
 
#define NV_ONNX_PARSER_MINOR   1
 
#define NV_ONNX_PARSER_PATCH   0
 

Typedefs

using SubGraph_t = std::pair< std::vector< size_t >, bool >
 The data structure containing the parsing capability of a set of nodes in an ONNX graph.
 
using SubGraphCollection_t = std::vector< SubGraph_t >
 The data structure containing all SubGraph_t partitioned out of an ONNX graph.
 

Enumerations

enum  ErrorCode : int {
  kSUCCESS = 0, kINTERNAL_ERROR = 1, kMEM_ALLOC_FAILED = 2, kMODEL_DESERIALIZE_FAILED = 3,
  kINVALID_VALUE = 4, kINVALID_GRAPH = 5, kINVALID_NODE = 6, kUNSUPPORTED_GRAPH = 7,
  kUNSUPPORTED_NODE = 8
}
 

Functions

template<typename T >
int32_t nvonnxparser::EnumMax ()
 
template<>
int32_t nvonnxparser::EnumMax< ErrorCode > ()
 
TENSORRTAPI void * createNvOnnxParser_INTERNAL (void *network, void *logger, int version)
 
TENSORRTAPI int getNvOnnxParserVersion ()
 
IParser * nvonnxparser::anonymous_namespace{NvOnnxParser.h}::createParser (nvinfer1::INetworkDefinition &network, nvinfer1::ILogger &logger)
 Create a new parser object. More...
 

Detailed Description

This is the API for the ONNX Parser