Class TensorRtDimensionExpressionSnapshotDesignGate
- Namespace
- JYPPX.TensorRtSharp
- Assembly
- JYPPX.TensorRtSharp.dll
Evaluates the pointer-free TensorRT dimension expression snapshot design gate. 评估 TensorRT dimension expression snapshot 的无裸指针设计门。
public static class TensorRtDimensionExpressionSnapshotDesignGate
- Inheritance
-
TensorRtDimensionExpressionSnapshotDesignGate
- Inherited Members
Remarks
This gate does not expose an IDimensionExpr*, does not create expression nodes through
IExprBuilder, and is not runtime execution proof.
该门禁不会暴露 IDimensionExpr*,不会通过 IExprBuilder 创建表达式节点,也不是 runtime execution proof。
Methods
Evaluate(TensorRtApiLine, bool, bool, bool, bool, bool)
Evaluates the dimension expression snapshot design gate from explicit capability flags. 根据显式能力标记评估 dimension expression snapshot 设计门。
public static TensorRtDimensionExpressionSnapshotDesignGateResult Evaluate(TensorRtApiLine line, bool ownerLifetimeKnown, bool constantSnapshotCopyReady, bool sizeTensorMetadataCopyReady, bool exprBuilderOwnershipModeled, bool pluginShapeCallbackLifetimeModeled)
Parameters
lineTensorRtApiLineThe TensorRT API line. TensorRT API 版本线。
ownerLifetimeKnownboolWhether a safe owner lifetime has been proven. 是否已证明安全 owner lifetime。
constantSnapshotCopyReadyboolWhether copied constant metadata shape is ready. copied constant metadata 形态是否就绪。
sizeTensorMetadataCopyReadyboolWhether copied size-tensor metadata shape is ready where available. 可用时 copied size-tensor metadata 形态是否就绪。
exprBuilderOwnershipModeledboolWhether expression builder ownership has been modeled. expression builder ownership 是否已建模。
pluginShapeCallbackLifetimeModeledboolWhether plugin shape callback lifetime has been modeled. plugin shape callback lifetime 是否已建模。
Returns
- TensorRtDimensionExpressionSnapshotDesignGateResult
A pointer-free dimension expression design gate result. 无裸指针 dimension expression 设计门结果。
EvaluateKnownSurface(TensorRtApiLine)
Evaluates the known public dimension expression design surface for a TensorRT API line. 基于已知 public dimension expression 设计边界评估指定 TensorRT API line。
public static TensorRtDimensionExpressionSnapshotDesignGateResult EvaluateKnownSurface(TensorRtApiLine line)
Parameters
lineTensorRtApiLineThe TensorRT API line. TensorRT API 版本线。
Returns
- TensorRtDimensionExpressionSnapshotDesignGateResult
A pointer-free dimension expression design gate result. 无裸指针 dimension expression 设计门结果。