Table of Contents

Class TensorRtOnnxParserRefitterDiagnosticSnapshot

Namespace
JYPPX.TensorRtSharp
Assembly
JYPPX.TensorRtSharp.dll

Captures copied, pointer-free ONNX parser-refitter diagnostics. 捕获已复制、无指针逃逸的 ONNX parser-refitter 诊断信息。

public sealed class TensorRtOnnxParserRefitterDiagnosticSnapshot
Inheritance
TensorRtOnnxParserRefitterDiagnosticSnapshot
Inherited Members

Constructors

TensorRtOnnxParserRefitterDiagnosticSnapshot(TensorRtApiLine, int, IReadOnlyList<TensorRtOnnxParserDiagnostic>, string)

Creates an ONNX parser-refitter diagnostic snapshot. 创建 ONNX parser-refitter 诊断快照。

public TensorRtOnnxParserRefitterDiagnosticSnapshot(TensorRtApiLine line, int errorCount, IReadOnlyList<TensorRtOnnxParserDiagnostic> diagnostics, string diagnosticSummary)

Parameters

line TensorRtApiLine

TensorRT API line used by the parser-refitter. Parser-refitter 所属 TensorRT API 版本线。

errorCount int

Current parser-refitter error count reported by TensorRT. TensorRT 当前报告的 parser-refitter 错误数量。

diagnostics IReadOnlyList<TensorRtOnnxParserDiagnostic>

Copied parser-refitter diagnostics. 已复制的 parser-refitter 诊断列表。

diagnosticSummary string

Readable parser-refitter diagnostic summary. 可读 parser-refitter 诊断摘要。

Properties

DiagnosticSummary

Gets a readable parser-refitter diagnostic summary. 获取可读 parser-refitter 诊断摘要。

public string DiagnosticSummary { get; }

Property Value

string

Diagnostics

Gets copied detailed parser-refitter diagnostics. 获取已复制的详细 parser-refitter 诊断列表。

public IReadOnlyList<TensorRtOnnxParserDiagnostic> Diagnostics { get; }

Property Value

IReadOnlyList<TensorRtOnnxParserDiagnostic>

ErrorCount

Gets the parser-refitter error count reported when the snapshot was captured. 获取捕获快照时 TensorRT 报告的 parser-refitter 错误数量。

public int ErrorCount { get; }

Property Value

int

Line

Gets the TensorRT API line used by the parser-refitter. 获取 parser-refitter 使用的 TensorRT API 版本线。

public TensorRtApiLine Line { get; }

Property Value

TensorRtApiLine

Methods

ToString()

Converts the snapshot to a compact log-friendly string. 将快照转换为适合日志输出的紧凑字符串。

public override string ToString()

Returns

string

A compact parser-refitter diagnostic snapshot string. 紧凑 parser-refitter 诊断快照字符串。

ToSummary()

Creates a compact pointer-free summary from the copied managed snapshot values. 从已复制的托管快照值创建紧凑、无指针逃逸的摘要。

public TensorRtOnnxParserRefitterDiagnosticSummary ToSummary()

Returns

TensorRtOnnxParserRefitterDiagnosticSummary

A compact parser-refitter diagnostic summary. 紧凑 parser-refitter 诊断摘要。

Remarks

This method only reads values already held by this managed snapshot. It does not call TensorRT. It does not expose native pointers, and it does not promote the snapshot to runtime or external-model proof. 此方法只读取当前托管快照中已有的值,不调用 TensorRT、不暴露原生指针,也不将快照提升为运行时或外部模型 proof。