Class TensorRtTensorInfo
- Namespace
- JYPPX.TensorRtSharp
- Assembly
- JYPPX.TensorRtSharp.dll
Describes one TensorRT input or output tensor. 描述一个 TensorRT 输入或输出 tensor。
public sealed class TensorRtTensorInfo
- Inheritance
-
TensorRtTensorInfo
- Inherited Members
Constructors
TensorRtTensorInfo(int, string, TensorRtDataType, TensorRtIOMode, TensorRtDims)
Initializes tensor metadata. 初始化 tensor 元数据。
public TensorRtTensorInfo(int index, string name, TensorRtDataType dataType, TensorRtIOMode ioMode, TensorRtDims shape)
Parameters
indexintThe zero-based tensor index. 从零开始的 tensor 索引。
namestringThe TensorRT tensor name. TensorRT tensor 名称。
dataTypeTensorRtDataTypeThe TensorRT tensor data type. TensorRT tensor 数据类型。
ioModeTensorRtIOModeThe tensor input/output mode. tensor 输入输出模式。
shapeTensorRtDimsThe tensor shape. tensor 形状。
Properties
DataType
Gets the TensorRT tensor data type. 获取 TensorRT tensor 数据类型。
public TensorRtDataType DataType { get; }
Property Value
IOMode
Gets the tensor input/output mode. 获取 tensor 输入输出模式。
public TensorRtIOMode IOMode { get; }
Property Value
Index
Gets the zero-based tensor index. 获取从零开始的 tensor 索引。
public int Index { get; }
Property Value
Name
Gets the TensorRT tensor name. 获取 TensorRT tensor 名称。
public string Name { get; }
Property Value
Shape
Gets the tensor shape. 获取 tensor 形状。
public TensorRtDims Shape { get; }