docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method HardSigmoid

    HardSigmoid(TensorFloat, TensorFloat, float, float)

    Computes an output tensor by applying the element-wise HardSigmoid activation function: f(x) = clamp(alpha * x + beta, 0, 1).

    Declaration
    public override void HardSigmoid(TensorFloat X, TensorFloat O, float alpha, float beta)
    Parameters
    Type Name Description
    TensorFloat X

    The input tensor.

    TensorFloat O

    The output tensor to be computed and filled.

    float alpha

    The alpha value to use for the HardSigmoid activation function.

    float beta

    The beta value to use for the HardSigmoid activation function.

    Overrides
    CPUBackend.HardSigmoid(TensorFloat, TensorFloat, float, 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)