Table of Contents

Class TensorRtErrorCodeMetadata

Namespace
JYPPX.TensorRtSharp
Assembly
JYPPX.TensorRtSharp.dll

Provides pointer-free TensorRT error-code enum metadata. 提供无指针的 TensorRT error-code 枚举元数据。

public static class TensorRtErrorCodeMetadata
Inheritance
TensorRtErrorCodeMetadata
Inherited Members

Methods

GetExclusiveUpperBound(TensorRtApiLine)

Gets one greater than the largest TensorRT ErrorCode value for an API line. 获取指定 API line 中 TensorRT ErrorCode 最大值加一后的独占上界。

public static int GetExclusiveUpperBound(TensorRtApiLine line)

Parameters

line TensorRtApiLine

The TensorRT API line. TensorRT API 版本线。

Returns

int

The exclusive error-code upper bound. ErrorCode 的独占上界。

IsDefinedRangeValue(TensorRtApiLine, int)

Checks whether a raw error code is within the line's declared enum range. 检查原始错误码是否位于版本线声明的枚举范围内。

public static bool IsDefinedRangeValue(TensorRtApiLine line, int errorCode)

Parameters

line TensorRtApiLine

The TensorRT API line. TensorRT API 版本线。

errorCode int

The raw error code. 原始错误码。

Returns

bool

true when the value is in range. 值位于范围内时返回 true。