docs.unity3d.com
Search Results for

    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
    Assembly: Unity.Sentis.dll
    Syntax
    public enum CoordTransformMode

    Fields

    Name Description
    AlignCorners

    Use scaling by length - 1 so that corner pixels align.

    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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)