Class TensorRtEngineBindingReport
- Namespace
- JYPPX.TensorRtSharp
- Assembly
- JYPPX.TensorRtSharp.dll
Summarizes TensorRT engine I/O metadata and optional execution-context readiness for deployment. 汇总 TensorRT engine I/O 元数据以及可选 execution-context 就绪状态,用于模型部署诊断。
public sealed class TensorRtEngineBindingReport
- Inheritance
-
TensorRtEngineBindingReport
- Inherited Members
Constructors
TensorRtEngineBindingReport(string, int, IReadOnlyList<TensorRtEngineTensorBinding>, TensorRtExecutionContextReadiness?)
Creates an engine binding report. 创建 engine 绑定报告。
public TensorRtEngineBindingReport(string engineName, int profileIndex, IReadOnlyList<TensorRtEngineTensorBinding> tensors, TensorRtExecutionContextReadiness? readiness)
Parameters
engineNamestringprofileIndexinttensorsIReadOnlyList<TensorRtEngineTensorBinding>readinessTensorRtExecutionContextReadiness
Properties
EngineName
Gets the TensorRT engine name. 获取 TensorRT engine 名称。
public string EngineName { get; }
Property Value
IsReadyForEnqueue
Gets whether an execution-context snapshot is attached and ready for enqueue. 获取是否附加了 execution context 快照且该快照已可执行 enqueue。
public bool IsReadyForEnqueue { get; }
Property Value
ProfileIndex
Gets the optimization profile index used to query profile-specific tensor metadata. 获取用于查询 profile 相关 tensor 元数据的 optimization profile 索引。
public int ProfileIndex { get; }
Property Value
Readiness
Gets the optional execution-context readiness snapshot. 获取可选的 execution context 就绪状态快照。
public TensorRtExecutionContextReadiness? Readiness { get; }
Property Value
Tensors
Gets the engine I/O tensor binding snapshots. 获取 engine I/O tensor 绑定快照集合。
public IReadOnlyList<TensorRtEngineTensorBinding> Tensors { get; }
Property Value
Methods
GetInputs()
Gets all input tensor bindings. 获取所有输入 tensor 绑定信息。
public IReadOnlyList<TensorRtEngineTensorBinding> GetInputs()
Returns
- IReadOnlyList<TensorRtEngineTensorBinding>
The input tensor bindings. 输入 tensor 绑定信息。
GetOutputs()
Gets all output tensor bindings. 获取所有输出 tensor 绑定信息。
public IReadOnlyList<TensorRtEngineTensorBinding> GetOutputs()
Returns
- IReadOnlyList<TensorRtEngineTensorBinding>
The output tensor bindings. 输出 tensor 绑定信息。
GetTensor(string)
Finds a tensor binding by name. 按名称查找 tensor 绑定信息。
public TensorRtEngineTensorBinding GetTensor(string tensorName)
Parameters
tensorNamestringThe TensorRT tensor name. TensorRT tensor 名称。
Returns
- TensorRtEngineTensorBinding
The matching tensor binding. 匹配的 tensor 绑定信息。
ToString()
Creates a compact one-line diagnostic summary. 创建紧凑的单行诊断摘要。
public override string ToString()
Returns
- string
A summary line. 摘要文本。