Class TensorRtLayerTensorMetadata
- Namespace
- JYPPX.TensorRtSharp
- Assembly
- JYPPX.TensorRtSharp.dll
Describes one TensorRT layer input or output tensor slot for deployment diagnostics. 描述 TensorRT layer 的一个输入或输出 tensor 槽位,用于部署诊断。
public sealed class TensorRtLayerTensorMetadata
- Inheritance
-
TensorRtLayerTensorMetadata
- Inherited Members
Remarks
This type is a managed snapshot. It does not own or expose the native TensorRT ITensor* pointer.
此类型是托管快照,不持有也不暴露原生 TensorRT ITensor* 指针。
Properties
AllowedFormats
Gets the allowed TensorRT tensor formats when available. 获取可用时的 TensorRT tensor 允许格式。
public TensorRtTensorFormats? AllowedFormats { get; }
Property Value
DataType
Gets the TensorRT tensor data type when the slot contains a tensor. 当槽位包含 tensor 时获取 TensorRT tensor 数据类型。
public TensorRtDataType? DataType { get; }
Property Value
DimensionExtents
Gets raw dimension extents for each tensor dimension. 获取每个 tensor 维度的原始 extent。
public IReadOnlyList<int> DimensionExtents { get; }
Property Value
DimensionExtents64
Gets raw 64-bit dimension extents for each tensor dimension when available. 获取可用时每个 tensor 维度的原始 64 位 extent。
public IReadOnlyList<long> DimensionExtents64 { get; }
Property Value
DimensionNames
Gets symbolic dimension names for each tensor dimension. Empty entries mean unnamed dimensions. 获取每个 tensor 维度的符号名称;空字符串表示该维度未命名。
public IReadOnlyList<string> DimensionNames { get; }
Property Value
HasDynamicDimension
Gets whether any dimension extent is dynamic, typically represented by a negative value. 获取是否存在动态维度,通常由负数维度表示。
public bool HasDynamicDimension { get; }
Property Value
HasTensor
Gets whether the slot currently contains a TensorRT tensor. 获取当前槽位是否包含 TensorRT tensor。
public bool HasTensor { get; }
Property Value
Index
Gets the zero-based layer input or output slot index. 获取从零开始的 layer 输入或输出槽位索引。
public int Index { get; }
Property Value
IsExecutionTensor
Gets whether TensorRT reports the tensor as an execution tensor. 获取 TensorRT 是否将该 tensor 报告为 execution tensor。
public bool IsExecutionTensor { get; }
Property Value
IsNetworkInput
Gets whether this tensor is a network input tensor. 获取该 tensor 是否为 network input tensor。
public bool IsNetworkInput { get; }
Property Value
IsNetworkOutput
Gets whether this tensor is a network output tensor. 获取该 tensor 是否为 network output tensor。
public bool IsNetworkOutput { get; }
Property Value
IsOutputSlot
Gets whether this slot is an output slot. 获取当前槽位是否为输出槽位。
public bool IsOutputSlot { get; }
Property Value
IsShapeTensor
Gets whether TensorRT reports the tensor as a shape tensor. 获取 TensorRT 是否将该 tensor 报告为 shape tensor。
public bool IsShapeTensor { get; }
Property Value
Location
Gets the TensorRT tensor memory location when available. 获取可用时的 TensorRT tensor 内存位置。
public TensorRtTensorLocation? Location { get; }
Property Value
Name
Gets the TensorRT tensor name, or an empty string when absent. 获取 TensorRT tensor 名称;不存在时为空字符串。
public string Name { get; }
Property Value
Shape
Gets the static or dynamic TensorRT dimensions when the slot contains a tensor. 当槽位包含 tensor 时获取 TensorRT 静态或动态维度。
public TensorRtDims? Shape { get; }
Property Value
Shape64
Gets the TensorRT 11 tensor dimensions with 64-bit extents when available. 获取可用时的 TensorRT 11 张量维度,并保留 64 位 extent。
public TensorRtDims64? Shape64 { get; }
Property Value
Summary
Gets the compact native diagnostic summary for this slot. 获取该槽位的原生紧凑诊断摘要。
public string Summary { get; }
Property Value
Methods
ToString()
Returns a compact diagnostic string. 返回紧凑诊断字符串。
public override string ToString()