TensorRT-RTX 1.0.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...
 
IRuntimeCachecreateRuntimeCache () const noexcept
 Create an empty Runtime cache. More...
 
bool setRuntimeCache (IRuntimeCache const &cache) noexcept
 Set Runtime cache to the runtime config. Enables Runtime caching. More...
 
IRuntimeCachegetRuntimeCache () const noexcept
 Get the Runtime cache from the runtime config. More...
 
void setDynamicShapesKernelSpecializationStrategy (DynamicShapesKernelSpecializationStrategy dynamicShapesKernelSpecializationStrategy) noexcept
 Set the dynamic shape kernel specialization strategy for this config. More...
 
DynamicShapesKernelSpecializationStrategy getDynamicShapesKernelSpecializationStrategy () const noexcept
 Return the dynamic shape specialization strategy of this config. 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

◆ createRuntimeCache()

IRuntimeCache * nvinfer1::IRuntimeConfig::createRuntimeCache ( ) const
inlinenoexcept

Create an empty Runtime cache.

Returns
A fresh IRuntimeCache object.

◆ getDynamicShapesKernelSpecializationStrategy()

DynamicShapesKernelSpecializationStrategy nvinfer1::IRuntimeConfig::getDynamicShapesKernelSpecializationStrategy ( ) const
inlinenoexcept

Return the dynamic shape specialization strategy of this config.

Returns
dynamicShapesKernelSpecializationStrategy The dynamic shape specialization strategy.

◆ getExecutionContextAllocationStrategy()

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

Get the execution context allocation strategy.

Returns
The execution context allocation strategy.

◆ getRuntimeCache()

IRuntimeCache * nvinfer1::IRuntimeConfig::getRuntimeCache ( ) const
inlinenoexcept

Get the Runtime cache from the runtime config.

Returns
The Runtime cache.

◆ setDynamicShapesKernelSpecializationStrategy()

void nvinfer1::IRuntimeConfig::setDynamicShapesKernelSpecializationStrategy ( DynamicShapesKernelSpecializationStrategy  dynamicShapesKernelSpecializationStrategy)
inlinenoexcept

Set the dynamic shape kernel specialization strategy for this config.

Parameters
dynamicShapesKernelSpecializationStrategyThe dynamic shape specialization 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.

◆ setRuntimeCache()

bool nvinfer1::IRuntimeConfig::setRuntimeCache ( IRuntimeCache const &  cache)
inlinenoexcept

Set Runtime cache to the runtime config. Enables Runtime caching.

Parameters
cacheThe Runtime cache to set.

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