Class TensorRtInferenceBuffer
- Namespace
- JYPPX.TensorRtSharp
- Assembly
- JYPPX.TensorRtSharp.dll
Describes one managed inference buffer bound to a TensorRT engine tensor. 描述一个绑定到 TensorRT engine tensor 的托管推理缓冲区。
public sealed class TensorRtInferenceBuffer
- Inheritance
-
TensorRtInferenceBuffer
- Inherited Members
Properties
IsBound
Gets whether the buffer has been bound to the TensorRT execution context. 获取缓冲区是否已经绑定到 TensorRT execution context。
public bool IsBound { get; }
Property Value
Memory
Gets the managed CUDA memory allocation. 获取托管 CUDA 设备内存分配。
public CudaMemory Memory { get; }
Property Value
OwnsMemory
Gets whether this object owns and will dispose the CUDA memory. 获取该对象是否拥有并会释放对应 CUDA 内存。
public bool OwnsMemory { get; }
Property Value
RuntimeShape
Gets the runtime shape used to estimate the buffer size. 获取用于估算缓冲区大小的运行时 shape。
public TensorRtDims? RuntimeShape { get; }
Property Value
SizeInBytes
Gets the byte count expected by this binding. 获取该绑定预期使用的字节数。
public int SizeInBytes { get; }
Property Value
Tensor
Gets the TensorRT tensor metadata used to create or attach this buffer. 获取创建或附加该缓冲区时使用的 TensorRT tensor 元数据。
public TensorRtEngineTensorBinding Tensor { get; }
Property Value
Methods
ToString()
Gets a short human-readable summary for diagnostics. 获取用于诊断的简短可读摘要。
public override string ToString()
Returns
- string
A deployment binding summary. 部署绑定摘要。