docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method MaxPool

    MaxPool(TensorFloat, TensorFloat, int[], int[], int[])

    Calculates an output tensor by pooling the maximum values of the input tensor across its spatial dimensions according to the given pool and stride values.

    Declaration
    public override void MaxPool(TensorFloat X, TensorFloat O, int[] kernelShape, int[] strides, int[] pads)
    Parameters
    Type Name Description
    TensorFloat X

    The input tensor.

    TensorFloat O

    The output tensor to be computed and filled.

    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. For example, [pad_left, pad_right] for 1D, or [pad_top, pad_bottom, pad_left, pad_right] for 2D.

    Overrides
    CPUBackend.MaxPool(TensorFloat, TensorFloat, int[], int[], int[])
    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)