Table of Contents

Struct TensorRtRefitEntry

Namespace
JYPPX.TensorRtSharp
Assembly
JYPPX.TensorRtSharp.dll

Describes a TensorRT layer/role pair that can be refitted or is still missing. 描述一个可 refit 或仍缺失的 TensorRT layer/role 组合。

public readonly struct TensorRtRefitEntry
Inherited Members

Constructors

TensorRtRefitEntry(string, TensorRtWeightsRole)

Initializes a refit entry. 初始化 refit 条目。

public TensorRtRefitEntry(string layerName, TensorRtWeightsRole role)

Parameters

layerName string

The TensorRT layer name. TensorRT 层名称。

role TensorRtWeightsRole

The weight role for the layer. 该层对应的权重角色。

Properties

LayerName

Gets the TensorRT layer name. 获取 TensorRT 层名称。

public string LayerName { get; }

Property Value

string

Role

Gets the weight role that TensorRT expects for the layer. 获取 TensorRT 期望该层使用的权重角色。

public TensorRtWeightsRole Role { get; }

Property Value

TensorRtWeightsRole

Methods

ToString()

Returns a readable layer/role pair. 返回可读的 layer/role 组合。

public override string ToString()

Returns

string

A diagnostic string. 诊断字符串。