docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Hardmax

    Hardmax(TensorFloat, int)

    Computes an output tensor by applying the Hardmax activation function along an axis: f(X, axis) = 1 if x is the first maximum value along the specified axis, otherwise f(x) = 0.

    Declaration
    public TensorFloat Hardmax(TensorFloat X, int axis = -1)
    Parameters
    Type Name Description
    TensorFloat X

    The input tensor.

    int axis

    The axis along which to apply the Hardmax activation function. The default value is -1.

    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)