TensorRT 10.5.0
nvinfer1::ISerializationConfig Class Reference

Holds properties for configuring an engine to serialize the binary. More...

#include <NvInferRuntime.h>

Inheritance diagram for nvinfer1::ISerializationConfig:
nvinfer1::INoCopy

Public Member Functions

virtual ~ISerializationConfig () noexcept=default
 
bool setFlags (SerializationFlags serializationFlags) noexcept
 Set the serialization flags to turn on for this config. More...
 
SerializationFlags getFlags () const noexcept
 Get the serialization flags for this config. More...
 
bool clearFlag (SerializationFlag serializationFlag) noexcept
 clear a serialization flag. More...
 
bool setFlag (SerializationFlag serializationFlag) noexcept
 Set a serialization flag. More...
 
bool getFlag (SerializationFlag serializationFlag) const noexcept
 Returns true if the serialization flag is set. More...
 

Protected Attributes

apiv::VSerializationConfig * mImpl
 

Additional Inherited Members

- Protected Member Functions inherited from nvinfer1::INoCopy
 INoCopy ()=default
 
virtual ~INoCopy ()=default
 
 INoCopy (INoCopy const &other)=delete
 
INoCopyoperator= (INoCopy const &other)=delete
 
 INoCopy (INoCopy &&other)=delete
 
INoCopyoperator= (INoCopy &&other)=delete
 

Detailed Description

Holds properties for configuring an engine to serialize the binary.

See also
SerializationFlag

Constructor & Destructor Documentation

◆ ~ISerializationConfig()

virtual nvinfer1::ISerializationConfig::~ISerializationConfig ( )
virtualdefaultnoexcept

Member Function Documentation

◆ clearFlag()

bool nvinfer1::ISerializationConfig::clearFlag ( SerializationFlag  serializationFlag)
inlinenoexcept

clear a serialization flag.

clears the serialization flag from the config.

See also
setFlags()

◆ getFlag()

bool nvinfer1::ISerializationConfig::getFlag ( SerializationFlag  serializationFlag) const
inlinenoexcept

Returns true if the serialization flag is set.

See also
getFlags()
Returns
True if flag is set, false if unset.

◆ getFlags()

SerializationFlags nvinfer1::ISerializationConfig::getFlags ( ) const
inlinenoexcept

Get the serialization flags for this config.

Returns
The serialization flags as a bitmask.
See also
setFlags()

◆ setFlag()

bool nvinfer1::ISerializationConfig::setFlag ( SerializationFlag  serializationFlag)
inlinenoexcept

Set a serialization flag.

Add the input serialization flag to the already enabled flags.

See also
setFlags()

◆ setFlags()

bool nvinfer1::ISerializationConfig::setFlags ( SerializationFlags  serializationFlags)
inlinenoexcept

Set the serialization flags to turn on for this config.

The flags are listed in the SerializationFlag enum.

Parameters
serializationFlagsThe serialization flags for an engine.
Note
This function will override the previous set flags, rather than bitwise ORing the new flag.
See also
getFlags()

Member Data Documentation

◆ mImpl

apiv::VSerializationConfig* nvinfer1::ISerializationConfig::mImpl
protected

The documentation for this class was generated from the following file:

  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