Table of Contents

Class TensorRtErrorRecorderSnapshot

Namespace
JYPPX.TensorRtSharp
Assembly
JYPPX.TensorRtSharp.dll

Represents a copied read-only snapshot of a TensorRT error recorder. 表示 TensorRT error recorder 的只读托管快照。

public sealed class TensorRtErrorRecorderSnapshot
Inheritance
TensorRtErrorRecorderSnapshot
Inherited Members

Properties

ErrorCount

Gets the number of errors reported by the recorder at snapshot time. 获取采集快照时 recorder 报告的错误数量。

public int ErrorCount { get; }

Property Value

int

HasOverflowed

Gets whether the recorder reported that errors had overflowed. 获取 recorder 是否报告曾发生错误溢出。

public bool HasOverflowed { get; }

Property Value

bool

HasRecorder

Gets whether the source object had an error recorder attached during the snapshot. 获取采集快照时来源对象是否附加了 error recorder。

public bool HasRecorder { get; }

Property Value

bool

InterfaceInfo

Gets copied TensorRT interface metadata for the recorder when available. 获取已复制的 recorder TensorRT interface 元数据;可用性由 InterfaceInfoAvailable 指示。

public TensorRtInterfaceInfo InterfaceInfo { get; }

Property Value

TensorRtInterfaceInfo

InterfaceInfoAvailable

Gets whether TensorRT reported copied versioned-interface metadata for the attached recorder. 获取 TensorRT 是否为已附加 recorder 报告复制型 versioned-interface 元数据。

public bool InterfaceInfoAvailable { get; }

Property Value

bool

Line

Gets the TensorRT API line used to collect this snapshot. 获取采集该快照的 TensorRT API line。

public TensorRtApiLine Line { get; }

Property Value

TensorRtApiLine

Records

Gets copied error records. No native recorder pointer is exposed or retained. 获取已复制的错误记录;不会暴露或持有原生 recorder 指针。

public IReadOnlyList<TensorRtErrorRecord> Records { get; }

Property Value

IReadOnlyList<TensorRtErrorRecord>

Methods

ToString()

Converts the snapshot to a compact diagnostic string. 转换为简短诊断字符串。

public override string ToString()

Returns

string

A compact diagnostic string. 简短诊断字符串。

ToSummary()

Converts the copied snapshot into a compact pointer-free summary. 将已复制 snapshot 转换为紧凑的无指针摘要。

public TensorRtErrorRecorderSummary ToSummary()

Returns

TensorRtErrorRecorderSummary

A copied summary suitable for logs, smoke output, and package-consumer probes. 适用于日志、smoke 输出和包消费验证的复制型摘要。