Class TensorRtLegacyParserDiagnostics
- Namespace
- JYPPX.TensorRtSharp
- Assembly
- JYPPX.TensorRtSharp.dll
Provides pointer-free readonly diagnostics for TensorRT 8 legacy UFF and Caffe parser assets. 提供 TensorRT 8 legacy UFF 与 Caffe parser 资产的无指针只读诊断。
public static class TensorRtLegacyParserDiagnostics
- Inheritance
-
TensorRtLegacyParserDiagnostics
- Inherited Members
Methods
GetUffRequiredVersion(TensorRtApiLine)
Gets the UFF version required by the TensorRT 8 legacy parser. 获取 TensorRT 8 legacy parser 所需的 UFF 版本。
public static TensorRtLegacyUffRequiredVersionSnapshot GetUffRequiredVersion(TensorRtApiLine line = TensorRtApiLine.TensorRt8)
Parameters
lineTensorRtApiLineThe TensorRT adapter line; only TensorRT 8 is supported. TensorRT 适配版本线;仅支持 TensorRT 8。
Returns
- TensorRtLegacyUffRequiredVersionSnapshot
A caller-owned version snapshot. caller-owned 版本快照。
ReadCaffeBinaryProto(string, TensorRtApiLine)
Parses a Caffe binaryproto file and copies its dimensions, data type, and data bytes. 解析 Caffe binaryproto 文件并复制其维度、数据类型和数据字节。
public static TensorRtCaffeBinaryProtoSnapshot ReadCaffeBinaryProto(string filePath, TensorRtApiLine line = TensorRtApiLine.TensorRt8)
Parameters
filePathstringThe binaryproto file path. binaryproto 文件路径。
lineTensorRtApiLineThe TensorRT adapter line; only TensorRT 8 is supported. TensorRT 适配版本线;仅支持 TensorRT 8。
Returns
- TensorRtCaffeBinaryProtoSnapshot
A pointer-free caller-owned snapshot. 无指针的 caller-owned 快照。