Struct TensorRtAllocatorDryRunRequest
- Namespace
- JYPPX.TensorRtSharp
- Assembly
- JYPPX.TensorRtSharp.dll
Describes one managed allocator dry-run diagnostic request. 描述一次托管 allocator dry-run 诊断请求。
public readonly struct TensorRtAllocatorDryRunRequest
- Inherited Members
Remarks
This value is diagnostic-only. It does not carry a TensorRT device pointer, CUDA stream, or native allocator ownership. 该值仅用于诊断;它不携带 TensorRT device pointer、CUDA stream 或 native allocator 所有权。
Constructors
TensorRtAllocatorDryRunRequest(ulong, ulong, string)
Creates an allocator dry-run request. 创建 allocator dry-run 请求。
public TensorRtAllocatorDryRunRequest(ulong size, ulong alignment, string reason = "")
Parameters
sizeulongThe requested allocation size in bytes. 请求分配的字节数。
alignmentulongThe requested alignment in bytes. 请求的字节对齐。
reasonstringA diagnostic reason copied from the caller. 调用方提供的诊断原因。
Properties
Alignment
Gets the requested alignment in bytes. 获取请求的字节对齐。
public ulong Alignment { get; }
Property Value
Reason
Gets the caller-provided diagnostic reason. 获取调用方提供的诊断原因。
public string Reason { get; }
Property Value
Size
Gets the requested allocation size in bytes. 获取请求分配的字节数。
public ulong Size { get; }
Property Value
Methods
ToString()
Returns a compact diagnostic representation. 返回紧凑的诊断表示。
public override string ToString()
Returns
- string
A diagnostic string. 诊断字符串。