Table of Contents

Class TensorRtCalibratorMetadataDesignGate

Namespace
JYPPX.TensorRtSharp
Assembly
JYPPX.TensorRtSharp.dll

Evaluates the pointer-free TensorRT INT8 calibrator metadata design gate. 评估 TensorRT INT8 calibrator metadata 的无裸指针设计门。

public static class TensorRtCalibratorMetadataDesignGate
Inheritance
TensorRtCalibratorMetadataDesignGate
Inherited Members

Remarks

This gate only allows presence and copied metadata planning. It does not invoke calibration callbacks, does not read or write calibration caches, and is not runtime execution proof. 该门禁只允许 presence 与 copied metadata 规划;不会调用 calibration callback,不读写 calibration cache,也不是 runtime execution proof。

Methods

Evaluate(TensorRtApiLine, bool, bool, bool, bool, bool)

Evaluates the calibrator metadata design gate from explicit capability flags. 根据显式能力标记评估 calibrator metadata 设计门。

public static TensorRtCalibratorMetadataDesignGateResult Evaluate(TensorRtApiLine line, bool presenceProbeAvailable, bool copiedAlgorithmMetadataReady, bool copiedInterfaceInfoMetadataReady, bool batchCallbackOwnershipModeled, bool cacheBufferOwnershipModeled)

Parameters

line TensorRtApiLine

The TensorRT API line. TensorRT API 版本线。

presenceProbeAvailable bool

Whether safe calibrator presence probe is available. 是否已有安全 calibrator presence 查询。

copiedAlgorithmMetadataReady bool

Whether copied algorithm metadata shape is ready. copied algorithm metadata 形态是否就绪。

copiedInterfaceInfoMetadataReady bool

Whether copied interface-info metadata shape is ready where available. 可用时 copied interface-info metadata 形态是否就绪。

batchCallbackOwnershipModeled bool

Whether getBatch callback ownership is modeled. getBatch callback ownership 是否已建模。

cacheBufferOwnershipModeled bool

Whether calibration cache buffer ownership is modeled. calibration cache buffer ownership 是否已建模。

Returns

TensorRtCalibratorMetadataDesignGateResult

A pointer-free calibrator metadata design gate result. 无裸指针 calibrator metadata 设计门结果。

EvaluateKnownSurface(TensorRtApiLine)

Evaluates the known public calibrator metadata surface for a TensorRT API line. 基于已知 public calibrator metadata 边界评估指定 TensorRT API line。

public static TensorRtCalibratorMetadataDesignGateResult EvaluateKnownSurface(TensorRtApiLine line)

Parameters

line TensorRtApiLine

The TensorRT API line. TensorRT API 版本线。

Returns

TensorRtCalibratorMetadataDesignGateResult

A pointer-free calibrator metadata design gate result. 无裸指针 calibrator metadata 设计门结果。