Table of Contents

Class TensorRtRnnV2GateWeightsSnapshot

Namespace
JYPPX.TensorRtSharp
Assembly
JYPPX.TensorRtSharp.dll

Represents a copied TensorRT 8 RNNv2 gate weight or bias snapshot. 表示复制后的 TensorRT 8 RNNv2 gate weight 或 bias 快照。

public sealed class TensorRtRnnV2GateWeightsSnapshot
Inheritance
TensorRtRnnV2GateWeightsSnapshot
Inherited Members

Properties

ByteCount

Gets the copied byte count. 获取已复制字节数。

public int ByteCount { get; }

Property Value

int

DataType

Gets the TensorRT element data type. 获取 TensorRT 元素数据类型。

public TensorRtDataType DataType { get; }

Property Value

TensorRtDataType

ElementCount

Gets the number of elements. 获取元素数量。

public long ElementCount { get; }

Property Value

long

Gate

Gets the selected RNN gate. 获取选中的 RNN gate。

public TensorRtRnnGateType Gate { get; }

Property Value

TensorRtRnnGateType

IsBias

Gets whether this snapshot contains bias values. 获取快照是否包含 bias 值。

public bool IsBias { get; }

Property Value

bool

IsInputWeights

Gets whether the snapshot selects W/Wb input-side parameters instead of R/Rb recurrent parameters. 获取快照是否选择 W/Wb 输入侧参数,而不是 R/Rb recurrent 参数。

public bool IsInputWeights { get; }

Property Value

bool

LayerIndex

Gets the physical RNN layer index. 获取 RNN 物理层索引。

public int LayerIndex { get; }

Property Value

int

Methods

ToArray()

Returns a new copy of the native weight bytes. 返回 native weight 字节的新副本。

public byte[] ToArray()

Returns

byte[]