Table of Contents

Class TensorRtParserErrorInfo

Namespace
JYPPX.TensorRtSharp
Assembly
JYPPX.TensorRtSharp.dll

Provides fixed-buffer ONNX parser error information returned by TensorRT. 表示 TensorRT 返回的固定缓冲区 ONNX parser 错误信息。

public sealed class TensorRtParserErrorInfo
Inheritance
TensorRtParserErrorInfo
Inherited Members

Remarks

Use TensorRtOnnxParserDiagnostic when long diagnostic strings must not be truncated. 当需要避免长诊断字符串被截断时,请使用 TensorRtOnnxParserDiagnostic

Constructors

TensorRtParserErrorInfo(int, int, int, int, string, string, string, string, string)

Creates parser error information. 创建 parser 错误信息。

public TensorRtParserErrorInfo(int index, int code, int line, int node, string description, string file, string functionName, string nodeName, string nodeOperator)

Parameters

index int
code int
line int
node int
description string
file string
functionName string
nodeName string
nodeOperator string

Properties

Code

Gets the TensorRT parser error code. 获取 TensorRT parser 错误代码。

public int Code { get; }

Property Value

int

Description

Gets the parser error message stored in the fixed native buffer. 获取固定原生缓冲区中的 parser 错误消息。

public string Description { get; }

Property Value

string

File

Gets the source file reported by the parser. 获取 parser 报告的源码文件。

public string File { get; }

Property Value

string

FunctionName

Gets the source function reported by the parser. 获取 parser 报告的源码函数。

public string FunctionName { get; }

Property Value

string

Index

Gets the zero-based parser error index. 获取从零开始的 parser 错误索引。

public int Index { get; }

Property Value

int

Line

Gets the source line reported by the parser. 获取 parser 报告的源码行号。

public int Line { get; }

Property Value

int

Node

Gets the ONNX node index reported by the parser. 获取 parser 报告的 ONNX 节点索引。

public int Node { get; }

Property Value

int

NodeName

Gets the ONNX node name when available. 获取可用的 ONNX 节点名称。

public string NodeName { get; }

Property Value

string

NodeOperator

Gets the ONNX node operator when available. 获取可用的 ONNX 节点算子类型。

public string NodeOperator { get; }

Property Value

string

Methods

ToString()

Converts the error to a compact log-friendly string. 将错误信息转换为适合日志输出的简短字符串。

public override string ToString()

Returns

string

A readable parser error string. 可读的 parser 错误字符串。