docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Pad

    Pad(TensorFloat, TensorFloat, ReadOnlySpan<int>, PadMode, float)

    Calculates the output tensor by adding padding to the input tensor according to the given padding values and mode.

    Declaration
    public virtual void Pad(TensorFloat X, TensorFloat O, ReadOnlySpan<int> pad, PadMode padMode, float constant)
    Parameters
    Type Name Description
    TensorFloat X

    The input tensor.

    TensorFloat O

    The output tensor to be computed and filled.

    ReadOnlySpan<int> pad

    The lower and upper padding values for each dimension.

    PadMode padMode

    The PadMode to use when padding.

    float constant

    The constant value to fill with when using PadMode.Constant.

    Implements
    IBackend.Pad(TensorFloat, TensorFloat, ReadOnlySpan<int>, PadMode, float)
    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)