TensorRT 10.12.0
nvinfer1::IRuntimeConfig Class Reference

A class for runtime configuration. This class is used during execution context creation. More...

#include <NvInferRuntime.h>

Inheritance diagram for nvinfer1::IRuntimeConfig:
nvinfer1::INoCopy

Public Member Functions

virtual ~IRuntimeConfig () noexcept=default
 
void setExecutionContextAllocationStrategy (ExecutionContextAllocationStrategy strategy) noexcept
 Set the execution context allocation strategy. Default value is kSTATIC. More...
 
ExecutionContextAllocationStrategy getExecutionContextAllocationStrategy () const noexcept
 Get the execution context allocation strategy. More...
 

Protected Attributes

apiv::VRuntimeConfig * 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

A class for runtime configuration. This class is used during execution context creation.

See also
IRuntime, IBuilderConfig

Constructor & Destructor Documentation

◆ ~IRuntimeConfig()

virtual nvinfer1::IRuntimeConfig::~IRuntimeConfig ( )
virtualdefaultnoexcept

Member Function Documentation

◆ getExecutionContextAllocationStrategy()

ExecutionContextAllocationStrategy nvinfer1::IRuntimeConfig::getExecutionContextAllocationStrategy ( ) const
inlinenoexcept

Get the execution context allocation strategy.

Returns
The execution context allocation strategy.

◆ setExecutionContextAllocationStrategy()

void nvinfer1::IRuntimeConfig::setExecutionContextAllocationStrategy ( ExecutionContextAllocationStrategy  strategy)
inlinenoexcept

Set the execution context allocation strategy. Default value is kSTATIC.

Parameters
strategyThe execution context allocation strategy.

Member Data Documentation

◆ mImpl

apiv::VRuntimeConfig* nvinfer1::IRuntimeConfig::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