Struct TensorRtGpuAllocatorCallbackRequest
- Namespace
- JYPPX.TensorRtSharp
- Assembly
- JYPPX.TensorRtSharp.dll
Contains copied, pointer-free metadata for one TensorRT GPU allocator callback. 包含一次 TensorRT GPU allocator 回调复制出的无指针元数据。
public readonly struct TensorRtGpuAllocatorCallbackRequest
- Inherited Members
Properties
Alignment
Gets requested alignment; release callbacks report zero. 获取请求对齐;释放回调为零。
public ulong Alignment { get; }
Property Value
AllocatorFlags
Gets TensorRT allocator flags copied as an unsigned mask. 获取以无符号掩码复制的 TensorRT allocator flags。
public uint AllocatorFlags { get; }
Property Value
HasCurrentMemory
Gets whether TensorRT supplied existing memory without exposing its address. 获取 TensorRT 是否提供已有显存,但不暴露其地址。
public bool HasCurrentMemory { get; }
Property Value
HasStream
Gets whether TensorRT supplied a CUDA stream without exposing its handle. 获取 TensorRT 是否提供 CUDA stream,但不暴露其句柄。
public bool HasStream { get; }
Property Value
IsRelease
Gets whether this is a release notification. 获取当前操作是否为释放通知。
public bool IsRelease { get; }
Property Value
Kind
Gets the callback operation. 获取回调操作。
public TensorRtGpuAllocatorCallbackKind Kind { get; }
Property Value
NativePointerExposed
Gets whether this API exposes a native pointer. 获取该 API 是否暴露 native pointer。
public bool NativePointerExposed { get; }
Property Value
RequestedSize
Gets requested bytes; release callbacks report zero. 获取请求字节数;释放回调为零。
public ulong RequestedSize { get; }
Property Value
Methods
ToString()
Returns a compact diagnostic string. 返回紧凑诊断字符串。
public override string ToString()