TensorRT 10.0.0
nvonnxparser Namespace Reference

The TensorRT ONNX parser API namespace. More...

Namespaces

namespace  anonymous_namespace{NvOnnxParser.h}
 

Classes

class  IOnnxConfig
 Configuration Manager Class. More...
 
class  IParser
 an object for parsing ONNX models into a TensorRT network definition More...
 
class  IParserError
 an object containing information about an error More...
 
class  IParserRefitter
 An interface designed to refit weights from an ONNX model. More...
 

Typedefs

using OnnxParserFlags = uint32_t
 Represents one or more OnnxParserFlag values using binary OR operations, e.g., 1U << OnnxParserFlag::kNATIVE_INSTANCENORM. More...
 

Enumerations

enum class  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 , kUNSUPPORTED_NODE_ATTR = 9 , kUNSUPPORTED_NODE_INPUT = 10 , kUNSUPPORTED_NODE_DATATYPE = 11 ,
  kUNSUPPORTED_NODE_DYNAMIC = 12 , kUNSUPPORTED_NODE_SHAPE = 13 , kREFIT_FAILED = 14
}
 The type of error that the parser or refitter may return. More...
 
enum class  OnnxParserFlag : int32_t { kNATIVE_INSTANCENORM = 0 }
 

Functions

IOnnxConfigcreateONNXConfig ()
 
template<typename T >
constexpr int32_t EnumMax ()
 
template<>
constexpr int32_t EnumMax< ErrorCode > ()
 
template<>
constexpr int32_t EnumMax< OnnxParserFlag > ()
 

Detailed Description

The TensorRT ONNX parser API namespace.

Typedef Documentation

◆ OnnxParserFlags

using nvonnxparser::OnnxParserFlags = typedef uint32_t

Represents one or more OnnxParserFlag values using binary OR operations, e.g., 1U << OnnxParserFlag::kNATIVE_INSTANCENORM.

See also
IParser::setFlags() and IParser::getFlags()

Enumeration Type Documentation

◆ ErrorCode

enum class nvonnxparser::ErrorCode : int
strong

The type of error that the parser or refitter may return.

Enumerator
kSUCCESS 
kINTERNAL_ERROR 
kMEM_ALLOC_FAILED 
kMODEL_DESERIALIZE_FAILED 
kINVALID_VALUE 
kINVALID_GRAPH 
kINVALID_NODE 
kUNSUPPORTED_GRAPH 
kUNSUPPORTED_NODE 
kUNSUPPORTED_NODE_ATTR 
kUNSUPPORTED_NODE_INPUT 
kUNSUPPORTED_NODE_DATATYPE 
kUNSUPPORTED_NODE_DYNAMIC 
kUNSUPPORTED_NODE_SHAPE 
kREFIT_FAILED 

◆ OnnxParserFlag

enum class nvonnxparser::OnnxParserFlag : int32_t
strong
Enumerator
kNATIVE_INSTANCENORM 

Parse the ONNX model into the INetworkDefinition with the intention of using TensorRT's native layer implementation over the plugin implementation for InstanceNormalization nodes. This flag is required when building version-compatible or hardware-compatible engines. This flag is set to be ON by default.

Function Documentation

◆ createONNXConfig()

IOnnxConfig * nvonnxparser::createONNXConfig ( )

◆ EnumMax()

template<typename T >
constexpr int32_t nvonnxparser::EnumMax ( )
inlineconstexpr

◆ EnumMax< ErrorCode >()

template<>
constexpr int32_t nvonnxparser::EnumMax< ErrorCode > ( )
inlineconstexpr

Maximum number of flags in the ErrorCode enum.

See also
ErrorCode

◆ EnumMax< OnnxParserFlag >()

template<>
constexpr int32_t nvonnxparser::EnumMax< OnnxParserFlag > ( )
inlineconstexpr

Maximum number of flags in the OnnxParserFlag enum.

See also
OnnxParserFlag