docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Clip

    Clip(TensorFloat, TensorFloat, float, float)

    Computes an output tensor by applying the element-wise Clip math function: f(x) = clamp(x, min, max).

    Declaration
    public override void Clip(TensorFloat X, TensorFloat O, float min, float max)
    Parameters
    Type Name Description
    TensorFloat X

    The input tensor.

    TensorFloat O

    The output tensor to be computed and filled.

    float min

    The lower clip value.

    float max

    The upper clip value.

    Overrides
    CPUBackend.Clip(TensorFloat, TensorFloat, float, float)

    Clip(TensorInt, TensorInt, int, int)

    Computes an output tensor by applying the element-wise Clip math function: f(x) = clamp(x, min, max).

    Declaration
    public override void Clip(TensorInt X, TensorInt O, int min, int max)
    Parameters
    Type Name Description
    TensorInt X

    The input tensor.

    TensorInt O

    The output tensor to be computed and filled.

    int min

    The lower clip value.

    int max

    The upper clip value.

    Overrides
    CPUBackend.Clip(TensorInt, TensorInt, 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)