Enum CoordTransformMode
Options for how to transform between the coordinate in the output tensor and the coordinate in the input tensor in Resize
.
Namespace: Unity.Sentis.Layers
Assembly: solution.dll
Syntax
public enum CoordTransformMode
Fields
Name | Description |
---|---|
AlignCorners | Use scaling by |
Asymmetric | Use direct scaling of coordinates by the scaling factor. |
HalfPixel | Use shifting by half a pixel before and after scaling. |
PytorchHalfPixel | Use shifting by half a pixel before and after scaling if the output length is greater than 1, otherwise use 0. |