Table of Contents

Class TensorRtDims

Namespace
JYPPX.TensorRtSharp
Assembly
JYPPX.TensorRtSharp.dll

Represents a TensorRT dimension vector. 表示一个 TensorRT 维度向量。

public sealed class TensorRtDims
Inheritance
TensorRtDims
Inherited Members

Constructors

TensorRtDims(int[])

Initializes a TensorRT dimension vector. 初始化一个 TensorRT 维度向量。

public TensorRtDims(int[] values)

Parameters

values int[]

The dimension values in TensorRT order. 按 TensorRT 顺序排列的维度值。

Properties

Rank

Gets the number of dimensions. 获取维度数量。

public int Rank { get; }

Property Value

int

Values

Gets the dimension values. 获取维度值。

public int[] Values { get; }

Property Value

int[]

Methods

ToString()

Formats the dimension vector for diagnostics. 将维度向量格式化为便于诊断的字符串。

public override string ToString()

Returns

string