Enum TensorRtExecutionContextAllocationStrategy
- Namespace
- JYPPX.TensorRtSharp
- Assembly
- JYPPX.TensorRtSharp.dll
Selects how TensorRT 11 allocates execution-context device memory. 选择 TensorRT 11 execution context 的设备内存分配策略。
public enum TensorRtExecutionContextAllocationStrategy
Fields
OnProfileChange = 1Reallocate when the active optimization profile changes. 当 active optimization profile 改变时重新分配。
Static = 0Allocate statically for the maximum requirement across profiles. 按所有 profile 中的最大需求静态分配。
UserManaged = 2The application provides device memory explicitly. 由应用程序显式提供 device memory。