docs.unity3d.com
    Show / Hide Table of Contents

    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 length - 1 so that corner pixels align.


    2
    Asymmetric

    Use direct scaling of coordinates by the scaling factor.


    3
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023