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
AllNamedWeights
Gets all copied named-weight names. 获取复制出的全部 named weight 名称。
public IReadOnlyList<string> AllNamedWeights { get; }
Property Value
Diagnostics
Gets diagnostics collected while creating the snapshot. 获取创建快照时收集的诊断信息。
public IReadOnlyList<string> Diagnostics { get; }
Property Value
DynamicRangeTensorCount
Gets the dynamic-range tensor count reported by the refitter. 获取 refitter 报告的 dynamic range tensor 数量。
public int DynamicRangeTensorCount { get; }
Property Value
DynamicRangeTensorNames
Gets the copied dynamic-range tensor names. 获取复制出的 dynamic range tensor 名称。
public IReadOnlyList<string> DynamicRangeTensorNames { get; }
Property Value
ErrorRecorder
Gets the copied error-recorder snapshot. 获取复制出的 error recorder 快照。
public TensorRtErrorRecorderSnapshot ErrorRecorder { get; }
Property Value
HasErrorRecorder
Gets whether the refitter reported an associated error recorder. 获取 refitter 是否报告关联的 error recorder。
public bool HasErrorRecorder { get; }
Property Value
HasLogger
Gets whether the refitter reported an associated logger. 获取 refitter 是否报告关联的 logger。
public bool HasLogger { get; }
Property Value
Line
Gets the TensorRT API line used to collect this snapshot. 获取采集该快照的 TensorRT API line。
public TensorRtApiLine Line { get; }
Property Value
MaxThreads
Gets the maximum thread count copied from the refitter. 获取从 refitter 复制出的最大线程数。
public int MaxThreads { get; }
Property Value
MissingNamedWeightCount
Gets the missing named-weight count reported by the refitter. 获取 refitter 报告的 missing named weight 数量。
public int MissingNamedWeightCount { get; }
Property Value
MissingNamedWeights
Gets the copied missing named-weight names. 获取复制出的 missing named weight 名称。
public IReadOnlyList<string> MissingNamedWeights { get; }
Property Value
WeightsValidation
Gets whether weight validation was enabled on the refitter. 获取 refitter 是否启用了权重验证。
public bool WeightsValidation { get; }
Property Value
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。