Class TensorRtOnnxParserDiagnostic
- Namespace
- JYPPX.TensorRtSharp
- Assembly
- JYPPX.TensorRtSharp.dll
Provides detailed diagnostics for one ONNX parser error reported by TensorRT. 表示 TensorRT ONNX 解析器报告的一条详细错误诊断信息。
public sealed class TensorRtOnnxParserDiagnostic
- Inheritance
-
TensorRtOnnxParserDiagnostic
- Inherited Members
Constructors
TensorRtOnnxParserDiagnostic(int, int, int, int, string, string, string, string, string, IReadOnlyList<string>)
Creates a parser diagnostic value. 创建一个解析器诊断值。
public TensorRtOnnxParserDiagnostic(int index, int code, int line, int node, string description, string file, string functionName, string nodeName, string nodeOperator, IReadOnlyList<string> localFunctionStack)
Parameters
indexintZero-based error index in the parser. 解析器中的从零开始错误索引。
codeintTensorRT parser error code. TensorRT 解析器错误代码。
lineintSource line reported by the parser, or a negative value when unavailable. 解析器报告的源码行号;不可用时通常为负值。
nodeintONNX node index reported by the parser, or a negative value when unavailable. 解析器报告的 ONNX 节点索引;不可用时通常为负值。
descriptionstringFull parser error message. 完整的解析器错误消息。
filestringSource file reported by the parser. 解析器报告的源码文件。
functionNamestringSource function reported by the parser. 解析器报告的源码函数。
nodeNamestringONNX node name when exposed by the TensorRT major line. TensorRT 大版本支持时返回 ONNX 节点名称。
nodeOperatorstringONNX node operator when exposed by the TensorRT major line. TensorRT 大版本支持时返回 ONNX 节点算子类型。
localFunctionStackIReadOnlyList<string>TensorRT 10 local function stack entries, or an empty list on TensorRT 8. TensorRT 10 的本地函数栈;TensorRT 8 通常为空。
Properties
Code
Gets the TensorRT parser error code. 获取 TensorRT 解析器错误代码。
public int Code { get; }
Property Value
Description
Gets the full parser error message without the fixed-size native struct truncation limit. 获取完整解析器错误消息,不受固定长度原生结构体缓冲区截断限制。
public string Description { get; }
Property Value
File
Gets the source file reported by the parser. 获取解析器报告的源码文件。
public string File { get; }
Property Value
FunctionName
Gets the source function reported by the parser. 获取解析器报告的源码函数。
public string FunctionName { get; }
Property Value
Index
Gets the zero-based error index in the parser. 获取解析器中的从零开始错误索引。
public int Index { get; }
Property Value
Line
Gets the source line reported by the parser. 获取解析器报告的源码行号。
public int Line { get; }
Property Value
LocalFunctionStack
Gets the TensorRT 10 local function stack entries. 获取 TensorRT 10 本地函数栈条目。
public IReadOnlyList<string> LocalFunctionStack { get; }
Property Value
Node
Gets the ONNX node index reported by the parser. 获取解析器报告的 ONNX 节点索引。
public int Node { get; }
Property Value
NodeName
Gets the ONNX node name when available. 获取可用的 ONNX 节点名称。
public string NodeName { get; }
Property Value
NodeOperator
Gets the ONNX node operator when available. 获取可用的 ONNX 节点算子类型。
public string NodeOperator { get; }
Property Value
Methods
ToString()
Converts the diagnostic to a compact log-friendly string. 将诊断信息转换为适合日志输出的简短字符串。
public override string ToString()
Returns
- string
A readable parser diagnostic string. 可读的解析器诊断字符串。