Table of Contents

Enum TensorRtNetworkDefinitionCreationFlags

Namespace
JYPPX.TensorRtSharp
Assembly
JYPPX.TensorRtSharp.dll

Represents TensorRT TensorRtNetworkDefinitionCreationFlags values. 表示 TensorRT TensorRtNetworkDefinitionCreationFlags 枚举值。

[Flags]
public enum TensorRtNetworkDefinitionCreationFlags : uint

Fields

ExplicitBatch = 1

Represents the ExplicitBatch value of TensorRtNetworkDefinitionCreationFlags. 表示 TensorRtNetworkDefinitionCreationFlags 的 ExplicitBatch 取值。

None = 0

Represents the None value of TensorRtNetworkDefinitionCreationFlags. 表示 TensorRtNetworkDefinitionCreationFlags 的 None 取值。

StronglyTypedTensorRt10 = 2

Represents the TensorRT 10 raw strongly-typed creation bit. 表示仅适用于 TensorRT 10 的 strongly typed 原始创建位。

TensorRT 11 uses a different enum position and always creates strongly typed networks. Prefer TensorRtBuilder.CreateNetwork(bool) for cross-version code. TensorRT 11 使用不同的枚举位置且始终创建 strongly typed network;跨版本代码应优先使用 TensorRtBuilder.CreateNetwork(bool)。