Table of Contents

Class TensorRtDims64

Namespace
JYPPX.TensorRtSharp
Assembly
JYPPX.TensorRtSharp.dll

Represents TensorRT 11 dimensions whose extents are reported as 64-bit values. 表示 TensorRT 11 中以 64 位整数报告的维度信息。

public sealed class TensorRtDims64
Inheritance
TensorRtDims64
Inherited Members

Remarks

TensorRT 11 can report larger dimension extents and unknown-rank shapes. This type keeps that information intact instead of narrowing values to int. TensorRT 11 可能报告更大的维度 extent,也可能返回 unknown-rank shape;此类型会保留这些信息,而不是强制压缩为 int

Constructors

TensorRtDims64(long[])

Creates a rank-known TensorRT 64-bit dimension value. 创建一个 rank 已知的 TensorRT 64 位维度值。

public TensorRtDims64(long[] values)

Parameters

values long[]

Dimension extents. 维度 extent 数组。

Properties

IsUnknownRank

Gets whether TensorRT reported an unknown rank instead of a concrete dimension vector. 获取 TensorRT 是否报告 unknown-rank,而不是具体的维度向量。

public bool IsUnknownRank { get; }

Property Value

bool

Rank

Gets the rank. Unknown-rank shapes return -1. 获取 rank;unknown-rank shape 返回 -1

public int Rank { get; }

Property Value

int

UnknownRank

Gets a singleton value that represents TensorRT's unknown-rank shape. 获取表示 TensorRT unknown-rank shape 的单例值。

public static TensorRtDims64 UnknownRank { get; }

Property Value

TensorRtDims64

Values

Gets a copy-safe 64-bit dimension extent array. 获取可安全读取的 64 位维度 extent 数组。

public long[] Values { get; }

Property Value

long[]

Methods

ToString()

Returns a compact diagnostic string. 返回紧凑的诊断字符串。

public override string ToString()

Returns

string