docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor Resize

    Resize(string, string, string, ScaleMode, InterpolationMode, CoordTransformMode, NearestMode)

    Initializes and returns an instance of Resize layer.

    Declaration
    public Resize(string name, string input, string scalesOrSizes, ScaleMode scaleMode, InterpolationMode mode, CoordTransformMode coordTransformMode, NearestMode nearestMode)
    Parameters
    Type Name Description
    string name

    The name to use for the output tensor of the layer.

    string input

    The name to use for the input tensor of the layer.

    string scalesOrSizes

    The name to use for the 1D scales or sizes tensor of the layer depending on the scaleMode.

    ScaleMode scaleMode

    The ScaleMode to use for the layer.

    InterpolationMode mode

    The InterpolationMode to use for the layer.

    CoordTransformMode coordTransformMode

    The CoordTransformMode to use for the layer.

    NearestMode nearestMode

    The NearestMode to use for the layer when using InterpolationMode.NearestMode.

    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)