docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor Reshape

    Reshape(string, string, string, bool)

    Initializes and returns an instance of Reshape layer.

    Declaration
    public Reshape(string name, string input, string shape, bool allowZero = false)
    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 shape

    The name to use for the 1D shape tensor of the layer.

    bool allowZero

    Whether to handle zeros in the shape like numpy.

     The default value is `false` and zero-sized dimensions in the shape take their value from the input tensor shape.
    
    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)