Table of Contents

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

index int

The zero-based tensor index. 从零开始的 tensor 索引。

name string

The TensorRT tensor name. TensorRT tensor 名称。

dataType TensorRtDataType

The TensorRT tensor data type. TensorRT tensor 数据类型。

ioMode TensorRtIOMode

The tensor input/output mode. tensor 输入输出模式。

shape TensorRtDims

The tensor shape. tensor 形状。

Properties

DataType

Gets the TensorRT tensor data type. 获取 TensorRT tensor 数据类型。

public TensorRtDataType DataType { get; }

Property Value

TensorRtDataType

IOMode

Gets the tensor input/output mode. 获取 tensor 输入输出模式。

public TensorRtIOMode IOMode { get; }

Property Value

TensorRtIOMode

Index

Gets the zero-based tensor index. 获取从零开始的 tensor 索引。

public int Index { get; }

Property Value

int

Name

Gets the TensorRT tensor name. 获取 TensorRT tensor 名称。

public string Name { get; }

Property Value

string

Shape

Gets the tensor shape. 获取 tensor 形状。

public TensorRtDims Shape { get; }

Property Value

TensorRtDims