Table of Contents

Class TensorRtPluginV2LayerMetadata

Namespace
JYPPX.TensorRtSharp
Assembly
JYPPX.TensorRtSharp.dll

Pointer-free metadata copied from a TensorRT PluginV2 layer. 从 TensorRT PluginV2 layer 复制出的无指针元数据。

public sealed class TensorRtPluginV2LayerMetadata
Inheritance
TensorRtPluginV2LayerMetadata
Inherited Members

Remarks

The native bridge reads the borrowed plugin only while the owning network lease is held and copies every value before returning. This type never exposes or owns an IPluginV2* pointer. Native bridge 只在 owning network lease 有效期间读取 borrowed plugin,并在返回前复制全部值; 本类型从不暴露或持有 IPluginV2* 指针。

Properties

HasDynamicExtCapability

Gets whether the plugin implements IPluginV2DynamicExt. 获取 plugin 是否实现 IPluginV2DynamicExt。

public bool HasDynamicExtCapability { get; }

Property Value

bool

HasExtCapability

Gets whether the plugin implements IPluginV2Ext. 获取 plugin 是否实现 IPluginV2Ext。

public bool HasExtCapability { get; }

Property Value

bool

HasIoExtCapability

Gets whether the plugin implements IPluginV2IOExt. 获取 plugin 是否实现 IPluginV2IOExt。

public bool HasIoExtCapability { get; }

Property Value

bool

IsConsistent

Gets whether the copied identity and version values are internally usable. 获取复制值是否具备可用的一致性。

public bool IsConsistent { get; }

Property Value

bool

Line

Gets the TensorRT API line used for the query. 获取查询使用的 TensorRT API line。

public TensorRtApiLine Line { get; }

Property Value

TensorRtApiLine

OutputCount

Gets the output count reported by IPluginV2::getNbOutputs. 获取 plugin 报告的输出数量。

public int OutputCount { get; }

Property Value

int

PackedTensorRtVersion

Gets the packed value returned by IPluginV2::getTensorRTVersion. 获取 IPluginV2::getTensorRTVersion 返回的 packed 值。

public int PackedTensorRtVersion { get; }

Property Value

int

PluginApiVersionTag

Gets the PluginV2 API tag stored in the upper byte. 获取高字节中的 PluginV2 API tag。

public byte PluginApiVersionTag { get; }

Property Value

byte

PluginNamespace

Gets the copied IPluginV2::getPluginNamespace value. 获取复制后的 plugin namespace。

public string PluginNamespace { get; }

Property Value

string

PluginType

Gets the copied IPluginV2::getPluginType value. 获取复制后的 plugin type。

public string PluginType { get; }

Property Value

string

PluginVersion

Gets the copied IPluginV2::getPluginVersion value. 获取复制后的 plugin version。

public string PluginVersion { get; }

Property Value

string

SerializationSize

Gets the copied serialized payload size in bytes. 获取复制后的序列化载荷字节数。

public ulong SerializationSize { get; }

Property Value

ulong

TensorRtMajor

Gets the decoded TensorRT major version. 获取解码后的 TensorRT major 版本。

public int TensorRtMajor { get; }

Property Value

int

TensorRtMinor

Gets the decoded TensorRT minor version. 获取解码后的 TensorRT minor 版本。

public int TensorRtMinor { get; }

Property Value

int

TensorRtPatch

Gets the decoded TensorRT patch version. 获取解码后的 TensorRT patch 版本。

public int TensorRtPatch { get; }

Property Value

int

TensorRtVersion

Gets the TensorRT numeric version stored in the lower 24 bits. 获取低 24 位中的 TensorRT 数字版本。

public int TensorRtVersion { get; }

Property Value

int

Methods

ToString()

Returns a compact pointer-free diagnostic string. 返回简短的无指针诊断字符串。

public override string ToString()

Returns

string