TensorRT 8.2.1
nvonnxparser::anonymous_namespace{NvOnnxParser.h} Namespace Reference

Functions

IParsercreateParser (nvinfer1::INetworkDefinition &network, nvinfer1::ILogger &logger)
 Create a new parser object. More...
 

Function Documentation

◆ createParser()

IParser * nvonnxparser::anonymous_namespace{NvOnnxParser.h}::createParser ( nvinfer1::INetworkDefinition network,
nvinfer1::ILogger logger 
)
inline

Create a new parser object.

Parameters
networkThe network definition that the parser will write to
loggerThe logger to use
Returns
a new parser object or NULL if an error occurred

Any input dimensions that are constant should not be changed after parsing, because correctness of the translation may rely on those constants. Changing a dynamic input dimension, i.e. one that translates to -1 in TensorRT, to a constant is okay if the constant is consistent with the model.

See also
IParser