Table of Contents

Class TensorRtExecutionContextRuntimeDiagnosticSnapshot

Namespace
JYPPX.TensorRtSharp
Assembly
JYPPX.TensorRtSharp.dll

Captures pointer-free execution-context runtime diagnostics for one output tensor. 捕获单个输出 tensor 对应的 execution context 运行时诊断快照;不暴露任何 borrowed pointer。

public sealed class TensorRtExecutionContextRuntimeDiagnosticSnapshot
Inheritance
TensorRtExecutionContextRuntimeDiagnosticSnapshot
Inherited Members

Properties

CallbackState

Gets the copied callback boundary state for OutputTensorName. 获取 OutputTensorName 对应的回调边界复制快照。

public TensorRtExecutionContextCallbackStateSnapshot CallbackState { get; }

Property Value

TensorRtExecutionContextCallbackStateSnapshot

Diagnostics

Gets non-fatal diagnostics collected while building the snapshot. 获取构建快照时收集的非致命诊断信息。

public IReadOnlyList<string> Diagnostics { get; }

Property Value

IReadOnlyList<string>

HasDebugListener

Gets whether TensorRT reports a debug listener attached to the context. 获取 TensorRT 是否报告 context 已绑定 debug listener。

public bool HasDebugListener { get; }

Property Value

bool

HasErrorRecorder

Gets whether TensorRT reports an error recorder attached to the execution context. 获取 TensorRT 是否报告 execution context 已绑定 error recorder。

public bool HasErrorRecorder { get; }

Property Value

bool

HasManagedProfiler

Gets whether the managed wrapper currently holds a profiler borrow. 获取托管 wrapper 当前是否持有 profiler 借用。

public bool HasManagedProfiler { get; }

Property Value

bool

HasNativeProfiler

Gets whether TensorRT reports a non-null native profiler pointer. 获取 TensorRT 是否报告非空 native profiler 指针;该指针不会被暴露。

public bool HasNativeProfiler { get; }

Property Value

bool

HasOutputAllocator

Gets whether TensorRT reports an output allocator for OutputTensorName. 获取 TensorRT 是否为 OutputTensorName 报告 output allocator。

public bool HasOutputAllocator { get; }

Property Value

bool

HasRuntimeConfig

Gets whether TensorRT exposes a runtime config object for this context. 获取 TensorRT 是否为该 context 暴露 runtime config 对象。

public bool HasRuntimeConfig { get; }

Property Value

bool

HasTemporaryStorageAllocator

Gets whether TensorRT reports a temporary-storage allocator attached to the context. 获取 TensorRT 是否报告 context 已绑定 temporary-storage allocator。

public bool HasTemporaryStorageAllocator { get; }

Property Value

bool

InputConsumedEventAddressValue

Gets the input-consumed event native address as a diagnostic integer value. 获取 input-consumed event 原生地址的诊断整数值。

public ulong InputConsumedEventAddressValue { get; }

Property Value

ulong

IsInputConsumedEventSet

Gets whether TensorRT reports an input-consumed event. 获取 TensorRT 是否报告已设置 input-consumed event。

public bool IsInputConsumedEventSet { get; }

Property Value

bool

IsOutputTensorAddressSet

Gets whether TensorRT reports an explicit output tensor address. 获取 TensorRT 是否报告该 output tensor 已绑定显式地址。

public bool IsOutputTensorAddressSet { get; }

Property Value

bool

Line

Gets the TensorRT API line used for the query. 获取执行查询时使用的 TensorRT API line。

public TensorRtApiLine Line { get; }

Property Value

TensorRtApiLine

NvtxVerbosity

Gets the current NVTX verbosity when readable. 获取可读时的当前 NVTX verbosity。

public TensorRtProfilingVerbosity NvtxVerbosity { get; }

Property Value

TensorRtProfilingVerbosity

OutputTensorAddressValue

Gets the output tensor native address as a diagnostic integer value. 获取 output tensor 原生地址的诊断整数值。

public ulong OutputTensorAddressValue { get; }

Property Value

ulong

OutputTensorName

Gets the output tensor name used for output-address and callback-state diagnostics. 获取用于输出地址与回调状态诊断的 output tensor 名称。

public string OutputTensorName { get; }

Property Value

string

UnfusedTensorsDebugState

Gets the TensorRT 11 unfused-tensor debug state when readable. 获取可读时的 TensorRT 11 unfused tensor debug state。

public bool UnfusedTensorsDebugState { get; }

Property Value

bool

Methods

ToString()

Creates a compact one-line diagnostic summary. 创建紧凑的单行诊断摘要。

public override string ToString()

Returns

string

ToSummary()

Creates a compact pointer-free summary from this copied execution-context runtime diagnostic snapshot. 从当前已复制的 execution-context runtime 诊断快照创建简短无指针摘要。

public TensorRtExecutionContextRuntimeDiagnosticSummary ToSummary()

Returns

TensorRtExecutionContextRuntimeDiagnosticSummary

A pointer-free execution-context runtime diagnostic summary. 无指针 execution-context runtime 诊断摘要。

Remarks

This method only reads managed snapshot values. It does not call TensorRT, expose native pointers, invoke callbacks, or promote runtime proof. 该方法只读取托管快照值;不会调用 TensorRT、暴露 native 指针、调用回调,也不会提升 runtime proof。