A class for runtime configuration. This class is used during execution context creation.
More...
#include <NvInferRuntime.h>
|
apiv::VRuntimeConfig * | mImpl |
|
A class for runtime configuration. This class is used during execution context creation.
- See also
- IRuntime, IBuilderConfig
◆ ~IRuntimeConfig()
virtual nvinfer1::IRuntimeConfig::~IRuntimeConfig |
( |
| ) |
|
|
virtualdefaultnoexcept |
◆ createRuntimeCache()
IRuntimeCache * nvinfer1::IRuntimeConfig::createRuntimeCache |
( |
| ) |
const |
|
inlinenoexcept |
Create an empty Runtime cache.
- Returns
- A fresh IRuntimeCache object.
◆ getDynamicShapesKernelSpecializationStrategy()
Return the dynamic shape specialization strategy of this config.
- Returns
- dynamicShapesKernelSpecializationStrategy The dynamic shape specialization strategy.
◆ getExecutionContextAllocationStrategy()
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()
Set the dynamic shape kernel specialization strategy for this config.
- Parameters
-
dynamicShapesKernelSpecializationStrategy | The dynamic shape specialization strategy. |
◆ setExecutionContextAllocationStrategy()
Set the execution context allocation strategy. Default value is kSTATIC.
- Parameters
-
strategy | The execution context allocation strategy. |
◆ setRuntimeCache()
bool nvinfer1::IRuntimeConfig::setRuntimeCache |
( |
IRuntimeCache const & |
cache | ) |
|
|
inlinenoexcept |
Set Runtime cache to the runtime config. Enables Runtime caching.
- Parameters
-
cache | The Runtime cache to set. |
◆ mImpl
apiv::VRuntimeConfig* nvinfer1::IRuntimeConfig::mImpl |
|
protected |
The documentation for this class was generated from the following file: