docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Celu

    Celu(TensorFloat, float)

    Computes an output tensor by applying the element-wise Celu activation function: f(x) = max(0, x) + min(0, alpha * (exp(x / alpha) - 1)).

    Declaration
    public TensorFloat Celu(TensorFloat X, float alpha)
    Parameters
    Type Name Description
    TensorFloat X

    The input tensor.

    float alpha

    The alpha value to use for the Celu activation function.

    Returns
    Type Description
    TensorFloat

    The computed output tensor.

    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)