Class TensorRtSerializedNetworkWithKernelText
- Namespace
- JYPPX.TensorRtSharp
- Assembly
- JYPPX.TensorRtSharp.dll
Owns a serialized TensorRT engine plan and the optional kernel text emitted by TensorRT 11. 持有 TensorRT 11 生成的序列化 engine plan,以及可选的 kernel text 输出。
public sealed class TensorRtSerializedNetworkWithKernelText : IDisposable
- Inheritance
-
TensorRtSerializedNetworkWithKernelText
- Implements
- Inherited Members
Remarks
Dispose this object after saving or consuming both memory blocks. The contained TensorRtHostMemory instances are owned by this result object. 在保存或使用完两个内存块后请释放该对象;其中包含的 TensorRtHostMemory 实例由本结果对象拥有。
Properties
KernelText
Gets optional kernel source text emitted by TensorRT, when the selected build mode produces it. 获取 TensorRT 在当前构建模式下可能生成的 kernel 源码文本;未生成时为 null。
public TensorRtHostMemory? KernelText { get; }
Property Value
Plan
Gets the serialized TensorRT engine plan. 获取序列化后的 TensorRT engine plan。
public TensorRtHostMemory Plan { get; }
Property Value
Methods
Dispose()
Releases the plan and optional kernel text buffers. 释放 plan 与可选 kernel text 缓冲区。
public void Dispose()