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
Syntax
public enum CoordTransformMode
Fields
| Name | Description | Value |
|---|---|---|
| HalfPixel | Use shifting by half a pixel before and after scaling. |
0 |
| PytorchHalfPixel | Use shifting by half a pixel before and after scaling if the output length is greater than 1, otherwise use 0. |
1 |
| AlignCorners | Use scaling by |
2 |
| Asymmetric | Use direct scaling of coordinates by the scaling factor. |
3 |