docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class LocalPool

    Infer the output partial tensor from the input partial tensors.

    If the layer has more than one output, output partial tensors are saved to 'ctx'.

    Inheritance
    object
    Layer
    LocalPool
    AveragePool
    MaxPool
    Inherited Members
    Layer.inputs
    Layer.name
    Layer.outputs
    Layer.flags
    Layer.Execute(Tensor[], ExecutionContext)
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Sentis.Layers
    Assembly: solution.dll
    Syntax
    [Serializable]
    public abstract class LocalPool : Layer

    Constructors

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

    Initializes and returns an instance of AveragePool pooling layer.

    Fields

    Name Description
    autopad

    The auto padding mode of the pool as an AutoPad.

    kernelShape

    The size of the kernel along each spatial axis.

    pads

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

    If this is null the layer uses a default of [0, 0, ..., 0].

    strides

    The stride along each spatial axis.

    If this is null the layer uses a default of [1, 1, ..., 1].

    Methods

    Name Description
    ToString()

    Returns a string that represents the Layer.

    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)