Class TensorRtOnnxParserDiagnosticSnapshot
- Namespace
- JYPPX.TensorRtSharp
- Assembly
- JYPPX.TensorRtSharp.dll
Captures copied, pointer-free ONNX parser diagnostics and inventory state. 捕获已复制、无指针逃逸的 ONNX parser 诊断与 inventory 状态。
public sealed class TensorRtOnnxParserDiagnosticSnapshot
- Inheritance
-
TensorRtOnnxParserDiagnosticSnapshot
- Inherited Members
Constructors
TensorRtOnnxParserDiagnosticSnapshot(TensorRtApiLine, int, IReadOnlyList<TensorRtOnnxParserDiagnostic>, string, IReadOnlyList<string>, bool)
Creates an ONNX parser diagnostic snapshot. 创建 ONNX parser 诊断快照。
public TensorRtOnnxParserDiagnosticSnapshot(TensorRtApiLine line, int errorCount, IReadOnlyList<TensorRtOnnxParserDiagnostic> diagnostics, string diagnosticSummary, IReadOnlyList<string> usedVCPluginLibraries, bool identityOperatorSupported)
Parameters
lineTensorRtApiLineTensorRT API line used by the parser. Parser 所属 TensorRT API 版本线。
errorCountintCurrent parser error count reported by TensorRT. TensorRT 当前报告的 parser 错误数量。
diagnosticsIReadOnlyList<TensorRtOnnxParserDiagnostic>Copied parser diagnostics. 已复制的 parser 诊断列表。
diagnosticSummarystringReadable parser diagnostic summary. 可读 parser 诊断摘要。
usedVCPluginLibrariesIReadOnlyList<string>Copied VC plugin library paths reported by the parser. 已复制的 parser VC plugin library 路径。
identityOperatorSupportedboolWhether TensorRT reports support for the ONNX Identity operator. TensorRT 是否报告支持 ONNX Identity 算子。
Properties
DiagnosticSummary
Gets a readable parser diagnostic summary. 获取可读 parser 诊断摘要。
public string DiagnosticSummary { get; }
Property Value
Diagnostics
Gets copied detailed parser diagnostics. 获取已复制的详细 parser 诊断列表。
public IReadOnlyList<TensorRtOnnxParserDiagnostic> Diagnostics { get; }
Property Value
ErrorCount
Gets the parser error count reported when the snapshot was captured. 获取捕获快照时 TensorRT 报告的 parser 错误数量。
public int ErrorCount { get; }
Property Value
IdentityOperatorSupported
Gets whether TensorRT reports support for the ONNX Identity operator. 获取 TensorRT 是否报告支持 ONNX Identity 算子。
public bool IdentityOperatorSupported { get; }
Property Value
Line
Gets the TensorRT API line used by the parser. 获取 parser 使用的 TensorRT API 版本线。
public TensorRtApiLine Line { get; }
Property Value
UsedVCPluginLibraries
Gets copied VC plugin library paths reported by the parser. 获取已复制的 parser VC plugin library 路径。
public IReadOnlyList<string> UsedVCPluginLibraries { get; }
Property Value
Methods
ToString()
Converts the snapshot to a compact log-friendly string. 将快照转换为适合日志输出的紧凑字符串。
public override string ToString()
Returns
- string
A compact parser diagnostic snapshot string. 紧凑 parser 诊断快照字符串。
ToSummary()
Creates a compact pointer-free summary from the copied managed snapshot values. 从已复制的托管快照值创建紧凑、无指针逃逸的摘要。
public TensorRtOnnxParserDiagnosticSummary ToSummary()
Returns
- TensorRtOnnxParserDiagnosticSummary
A compact parser diagnostic summary. 紧凑 parser 诊断摘要。
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。