|
TensorRT for RTX 1.6.1
|
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... | |
| class | IRefitterObserver |
| Observer interface invoked by IParserRefitter once per refittable engine weight. More... | |
| struct | RefitRecord |
| One refittable-weight description emitted by IRefitterObserver. 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 , kENABLE_UINT8_AND_ASYMMETRIC_QUANTIZATION_DLA = 1 , kREPORT_CAPABILITY_DLA = 2 , kENABLE_PLUGIN_OVERRIDE = 3 , kADJUST_FOR_DLA = 4 } |
| enum class | RefitTransformKind : int32_t { kIDENTITY = 0 , kDOUBLE_TO_FLOAT = 1 , kBATCH_NORM_FOLD_SCALE = 2 , kBATCH_NORM_FOLD_BIAS = 3 , kCONSTANT_NODE = 4 , kCONSTANT_OF_SHAPE = 5 } |
| Identifies how a refittable engine weight is produced from one or more ONNX initializers or node attributes. More... | |
Functions | |
| TENSORRTAPI IOnnxConfig * | createONNXConfig () |
| template<typename T > | |
| constexpr int32_t | EnumMax () noexcept=delete |
| template<> | |
| constexpr int32_t | EnumMax< ErrorCode > () noexcept |
Specialization. See nvonnxparser::EnumMax() for details. More... | |
| template<> | |
| constexpr int32_t | EnumMax< OnnxParserFlag > () noexcept |
Specialization. See nvonnxparser::EnumMax() for details. More... | |
| template<> | |
| constexpr int32_t | EnumMax< RefitTransformKind > () noexcept |
Specialization. See nvonnxparser::EnumMax() for details. More... | |
The TensorRT ONNX parser API namespace.
| using nvonnxparser::OnnxParserFlags = typedef uint32_t |
Represents one or more OnnxParserFlag values using binary OR operations, e.g., 1U << OnnxParserFlag::kNATIVE_INSTANCENORM.
|
strong |
The type of error that the parser or refitter may return.
|
strong |
|
strong |
Identifies how a refittable engine weight is produced from one or more ONNX initializers or node attributes.
Emitted by IParserRefitter through IRefitterObserver to describe how each refittable engine weight is sourced. A consumer can record these descriptions at build time and replay them at engine-load time to refit directly via nvinfer1::IRefitter::setNamedWeights, without invoking the ONNX parser again.
| Enumerator | |
|---|---|
| kIDENTITY | Source is one ONNX initializer; refit data equals the initializer data verbatim. |
| kDOUBLE_TO_FLOAT | Source is one ONNX initializer of DOUBLE type; refit data is the FLOAT cast. |
| kBATCH_NORM_FOLD_SCALE | Source is the four scale/bias/mean/variance initializers of a BatchNormalization node. Refit data is combinedScale[i] = scale[i] / sqrt(variance[i] + epsilon). |
| kBATCH_NORM_FOLD_BIAS | Source is the four scale/bias/mean/variance initializers of a BatchNormalization node. Refit data is combinedBias[i] = bias[i] - mean[i] * combinedScale[i]. |
| kCONSTANT_NODE | Source is the value attribute of a Constant node. The bytes are carried in RefitRecord::fixedData since they are not available as a separate ONNX initializer. |
| kCONSTANT_OF_SHAPE | Source is the value attribute of a ConstantOfShape node (defaulting to 0.0 if absent). The bytes are carried in RefitRecord::fixedData. |
| TENSORRTAPI IOnnxConfig * nvonnxparser::createONNXConfig | ( | ) |
|
constexprdeletenoexcept |
|
constexprnoexcept |
Specialization. See nvonnxparser::EnumMax() for details.
|
constexprnoexcept |
Specialization. See nvonnxparser::EnumMax() for details.
|
constexprnoexcept |
Specialization. See nvonnxparser::EnumMax() for details.
Copyright © 2024 NVIDIA Corporation
Privacy Policy |
Manage My Privacy |
Do Not Sell or Share My Data |
Terms of Service |
Accessibility |
Corporate Policies |
Product Security |
Contact