docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor LocalPool

    LocalPool(string, string, int[], int[], int[], AutoPad)

    Initializes and returns an instance of AveragePool pooling layer.

    Declaration
    public LocalPool(string name, string input, int[] kernelShape, int[] strides, int[] pads, AutoPad autopad = AutoPad.NotSet)
    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.

    int[] kernelShape

    The size of the kernel along each spatial axis.

    int[] strides

    The stride along each spatial axis.

    int[] pads

    The lower and upper padding values for each spatial dimension, [pad_left, pad_right] for 1D, [pad_top, pad_bottom, pad_left, pad_right] for 2D, etc.

    AutoPad autopad

    The auto padding mode of the pool as an AutoPad. The default value is AutoPad.NotSet.

    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)