Table of Contents

Enum TensorRtInterpolationMode

Namespace
JYPPX.TensorRtSharp
Assembly
JYPPX.TensorRtSharp.dll

Selects the TensorRT interpolation algorithm for resize and grid-sample style layers. 选择 TensorRT resize / grid-sample 等层使用的插值算法。

public enum TensorRtInterpolationMode

Fields

Cubic = 2

Cubic interpolation. 三次插值。

Linear = 1

Linear interpolation; TensorRT maps this to linear, bilinear, or trilinear by rank. 线性插值;TensorRT 会按张量维度映射为 linear、bilinear 或 trilinear。

Nearest = 0

Nearest-neighbor interpolation. 最近邻插值。