Class TensorRtRuntimeDiagnosticSnapshot
- Namespace
- JYPPX.TensorRtSharp
- Assembly
- JYPPX.TensorRtSharp.dll
Captures copied read-only diagnostics for a TensorRT runtime instance. 捕获 TensorRT runtime 实例的复制型只读诊断信息。
public sealed class TensorRtRuntimeDiagnosticSnapshot
- Inheritance
-
TensorRtRuntimeDiagnosticSnapshot
- Inherited Members
Properties
Diagnostics
Gets diagnostics collected while creating the snapshot. 获取创建快照时收集的诊断信息。
public IReadOnlyList<string> Diagnostics { get; }
Property Value
DlaCore
Gets the selected DLA core copied from the runtime. 获取从 runtime 复制出的已选 DLA core。
public int DlaCore { get; }
Property Value
DlaCoreCount
Gets the available DLA core count copied from the runtime. 获取从 runtime 复制出的可用 DLA core 数量。
public int DlaCoreCount { get; }
Property Value
EngineHostCodeAllowed
Gets whether engine host code was allowed by the runtime. 获取 runtime 是否允许 engine host code。
public bool EngineHostCodeAllowed { get; }
Property Value
ErrorRecorder
Gets the copied error-recorder snapshot. 获取复制出的 error recorder 快照。
public TensorRtErrorRecorderSnapshot ErrorRecorder { get; }
Property Value
HasErrorRecorder
Gets whether the runtime reported an associated error recorder. 获取 runtime 是否报告关联的 error recorder。
public bool HasErrorRecorder { get; }
Property Value
HasLogger
Gets whether the runtime reported an associated logger. 获取 runtime 是否报告关联的 logger。
public bool HasLogger { get; }
Property Value
Line
Gets the TensorRT API line used to collect this snapshot. 获取采集该快照的 TensorRT API line。
public TensorRtApiLine Line { get; }
Property Value
MaxThreads
Gets the maximum thread count copied from the runtime. 获取从 runtime 复制出的最大线程数。
public int MaxThreads { get; }
Property Value
TempfileControlFlags
Gets the temporary-file control flags copied from the runtime. 获取从 runtime 复制出的 temporary-file control flags。
public TensorRtTempfileControlFlags TempfileControlFlags { get; }
Property Value
TemporaryDirectory
Gets the temporary directory copied from the runtime. 获取从 runtime 复制出的临时目录。
public string TemporaryDirectory { get; }
Property Value
Methods
ToString()
Converts the snapshot to a compact diagnostic string. 将快照转换为简短诊断字符串。
public override string ToString()
Returns
- string
A compact diagnostic string. 简短诊断字符串。
ToSummary()
Creates a compact pointer-free summary from this copied runtime diagnostic snapshot. 从当前已复制的 runtime 诊断快照创建简短无指针摘要。
public TensorRtRuntimeDiagnosticSummary ToSummary()
Returns
- TensorRtRuntimeDiagnosticSummary
A pointer-free runtime diagnostic summary. 无指针 runtime 诊断摘要。
Remarks
This method only reads managed snapshot values. It does not call TensorRT, expose native pointers, or promote runtime proof. 该方法只读取托管快照值;不会调用 TensorRT、暴露 native 指针,也不会提升 runtime proof。