Table of Contents

Class TensorRtWeightsInfo

Namespace
JYPPX.TensorRtSharp
Assembly
JYPPX.TensorRtSharp.dll

Describes TensorRT weights metadata without exposing the native weights pointer. 描述 TensorRT weights 的元数据,但不暴露原生 weights 指针。

public sealed class TensorRtWeightsInfo
Inheritance
TensorRtWeightsInfo
Inherited Members

Properties

DataType

Gets the TensorRT data type for the weights. 获取 weights 使用的 TensorRT 数据类型。

public TensorRtDataType DataType { get; }

Property Value

TensorRtDataType

ElementCount

Gets the number of elements in the weights. 获取 weights 中的元素数量。

public long ElementCount { get; }

Property Value

long

HasValues

Gets whether TensorRT returned a non-null native weights value pointer. 获取 TensorRT 是否返回了非空的原生 weights value 指针。

public bool HasValues { get; }

Property Value

bool