docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor Pad

    Pad(string, string, string, PadMode)

    Initializes and returns an instance of Pad layer without a constant value tensor.

    Declaration
    public Pad(string name, string data, string pads, PadMode mode)
    Parameters
    Type Name Description
    string name

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

    string data

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

    string pads

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

    PadMode mode

    The PadMode to use when padding.

    Pad(string, string, string, string, PadMode)

    Initializes and returns an instance of Pad layer with a constant value tensor.

    Declaration
    public Pad(string name, string data, string pads, string constantValue, PadMode mode)
    Parameters
    Type Name Description
    string name

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

    string data

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

    string pads

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

    string constantValue

    The name to use for the scalar constant value tensor of the layer.

    PadMode mode

    The PadMode to use when padding.

    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)