Class TensorRtAlgorithmSnapshotDesignGate
- Namespace
- JYPPX.TensorRtSharp
- Assembly
- JYPPX.TensorRtSharp.dll
Evaluates the pointer-free TensorRT algorithm selector result snapshot design gate. 评估 TensorRT algorithm selector result snapshot 的无裸指针设计门。
public static class TensorRtAlgorithmSnapshotDesignGate
- Inheritance
-
TensorRtAlgorithmSnapshotDesignGate
- Inherited Members
Remarks
TensorRT algorithm objects are borrowed during algorithm selector callbacks. This gate records the copied snapshot shape required before any public API can expose algorithm timing, workspace, context, IO info, or variant metadata. TensorRT algorithm 对象来自 algorithm selector callback 期间的 borrowed 值;该门禁记录在公开 timing、 workspace、context、IO info 或 variant metadata 前必须满足的 copied snapshot 形态。
Methods
Evaluate(TensorRtApiLine, bool, bool, bool, bool, bool, bool)
Evaluates algorithm snapshot readiness from explicit capability flags. 根据显式能力标记评估 algorithm snapshot 就绪状态。
public static TensorRtAlgorithmSnapshotDesignGateResult Evaluate(TensorRtApiLine line, bool selectorCallbackOwnerModeled, bool algorithmResultLifetimeModeled, bool copiedTimingWorkspaceShapeReady, bool copiedContextShapeReady, bool copiedIoInfoShapeReady, bool copiedVariantShapeReady)
Parameters
lineTensorRtApiLineThe TensorRT API line. TensorRT API 版本线。
selectorCallbackOwnerModeledboolWhether selector callback owner lifetime has been modeled. selector callback owner lifetime 是否已建模。
algorithmResultLifetimeModeledboolWhether algorithm result lifetime has been modeled. algorithm result lifetime 是否已建模。
copiedTimingWorkspaceShapeReadyboolWhether timing/workspace copied shape is ready. timing/workspace copied 形态是否就绪。
copiedContextShapeReadyboolWhether context copied shape is ready. context copied 形态是否就绪。
copiedIoInfoShapeReadyboolWhether IO info copied shape is ready. IO info copied 形态是否就绪。
copiedVariantShapeReadyboolWhether variant copied shape is ready. variant copied 形态是否就绪。
Returns
- TensorRtAlgorithmSnapshotDesignGateResult
A pointer-free algorithm snapshot design gate result. 无裸指针 algorithm snapshot 设计门结果。
EvaluateKnownSurface(TensorRtApiLine)
Evaluates the known public algorithm snapshot design surface for a TensorRT API line. 基于已知 public algorithm snapshot 设计边界评估指定 TensorRT API line。
public static TensorRtAlgorithmSnapshotDesignGateResult EvaluateKnownSurface(TensorRtApiLine line)
Parameters
lineTensorRtApiLineThe TensorRT API line. TensorRT API 版本线。
Returns
- TensorRtAlgorithmSnapshotDesignGateResult
A pointer-free algorithm snapshot design gate result. 无裸指针 algorithm snapshot 设计门结果。