Table of Contents

Class TensorRtCaffeBinaryProtoSnapshot

Namespace
JYPPX.TensorRtSharp
Assembly
JYPPX.TensorRtSharp.dll

Contains caller-owned data and metadata copied from a TensorRT 8 Caffe binaryproto blob. 包含从 TensorRT 8 Caffe binaryproto blob 复制的 caller-owned 数据与元数据。

public sealed class TensorRtCaffeBinaryProtoSnapshot
Inheritance
TensorRtCaffeBinaryProtoSnapshot
Inherited Members

Properties

CallsProcessGlobalProtobufShutdown

Gets whether process-global protobuf shutdown is called. 获取是否调用进程级 protobuf shutdown。

public bool CallsProcessGlobalProtobufShutdown { get; }

Property Value

bool

Data

Gets a new caller-owned copy of the binaryproto data. 获取 binaryproto 数据的新 caller-owned 副本。

public byte[] Data { get; }

Property Value

byte[]

DataLength

Gets the copied data length in bytes. 获取复制数据的字节长度。

public int DataLength { get; }

Property Value

int

DataType

Gets the copied TensorRT data type. 获取复制后的 TensorRT 数据类型。

public TensorRtDataType DataType { get; }

Property Value

TensorRtDataType

Dimensions

Gets copied binaryproto dimensions. 获取复制后的 binaryproto 维度。

public TensorRtDims Dimensions { get; }

Property Value

TensorRtDims

FileName

Gets the source file name without its directory. 获取不含目录的源文件名。

public string FileName { get; }

Property Value

string

Line

Gets the TensorRT adapter line. 获取 TensorRT 适配版本线。

public TensorRtApiLine Line { get; }

Property Value

TensorRtApiLine

PointerFreeCopiedData

Gets whether all returned state is copied and pointer-free. 获取返回状态是否均已复制且不含指针。

public bool PointerFreeCopiedData { get; }

Property Value

bool

RetainsNativeObject

Gets whether the native parser, blob, or data pointer is retained. 获取是否保留 native parser、blob 或数据指针。

public bool RetainsNativeObject { get; }

Property Value

bool

Methods

ToString()

Formats the copied metadata. 格式化复制元数据。

public override string ToString()

Returns

string