Table of Contents

Class TensorRtRefitterDiagnosticSnapshot

Namespace
JYPPX.TensorRtSharp
Assembly
JYPPX.TensorRtSharp.dll

Captures copied read-only diagnostics for a TensorRT refitter instance. 捕获 TensorRT refitter 实例的复制型只读诊断信息。

public sealed class TensorRtRefitterDiagnosticSnapshot
Inheritance
TensorRtRefitterDiagnosticSnapshot
Inherited Members

Properties

AllNamedWeightCount

Gets the total named-weight count reported by the refitter. 获取 refitter 报告的全部 named weight 数量。

public int AllNamedWeightCount { get; }

Property Value

int

AllNamedWeights

Gets all copied named-weight names. 获取复制出的全部 named weight 名称。

public IReadOnlyList<string> AllNamedWeights { get; }

Property Value

IReadOnlyList<string>

Diagnostics

Gets diagnostics collected while creating the snapshot. 获取创建快照时收集的诊断信息。

public IReadOnlyList<string> Diagnostics { get; }

Property Value

IReadOnlyList<string>

DynamicRangeTensorCount

Gets the dynamic-range tensor count reported by the refitter. 获取 refitter 报告的 dynamic range tensor 数量。

public int DynamicRangeTensorCount { get; }

Property Value

int

DynamicRangeTensorNames

Gets the copied dynamic-range tensor names. 获取复制出的 dynamic range tensor 名称。

public IReadOnlyList<string> DynamicRangeTensorNames { get; }

Property Value

IReadOnlyList<string>

ErrorRecorder

Gets the copied error-recorder snapshot. 获取复制出的 error recorder 快照。

public TensorRtErrorRecorderSnapshot ErrorRecorder { get; }

Property Value

TensorRtErrorRecorderSnapshot

HasErrorRecorder

Gets whether the refitter reported an associated error recorder. 获取 refitter 是否报告关联的 error recorder。

public bool HasErrorRecorder { get; }

Property Value

bool

HasLogger

Gets whether the refitter reported an associated logger. 获取 refitter 是否报告关联的 logger。

public bool HasLogger { get; }

Property Value

bool

Line

Gets the TensorRT API line used to collect this snapshot. 获取采集该快照的 TensorRT API line。

public TensorRtApiLine Line { get; }

Property Value

TensorRtApiLine

MaxThreads

Gets the maximum thread count copied from the refitter. 获取从 refitter 复制出的最大线程数。

public int MaxThreads { get; }

Property Value

int

MissingNamedWeightCount

Gets the missing named-weight count reported by the refitter. 获取 refitter 报告的 missing named weight 数量。

public int MissingNamedWeightCount { get; }

Property Value

int

MissingNamedWeights

Gets the copied missing named-weight names. 获取复制出的 missing named weight 名称。

public IReadOnlyList<string> MissingNamedWeights { get; }

Property Value

IReadOnlyList<string>

WeightsValidation

Gets whether weight validation was enabled on the refitter. 获取 refitter 是否启用了权重验证。

public bool WeightsValidation { get; }

Property Value

bool

Methods

ToString()

Converts the snapshot to a compact diagnostic string. 将快照转换为简短诊断字符串。

public override string ToString()

Returns

string

A compact diagnostic string. 简短诊断字符串。

ToSummary()

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

public TensorRtRefitterDiagnosticSummary ToSummary()

Returns

TensorRtRefitterDiagnosticSummary

A pointer-free refitter diagnostic summary. 无指针 refitter 诊断摘要。

Remarks

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