docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ReduceLogSumExp

    ReduceLogSumExp(TensorFloat, ReadOnlySpan<int>, bool)

    Reduces an input tensor along the given axes using the ReduceLogSumExp operation: f(x1, x2 ... xn) = log(e^x1 + e^x2 + ... + e^xn).

    Declaration
    public TensorFloat ReduceLogSumExp(TensorFloat X, ReadOnlySpan<int> axes, bool keepdim)
    Parameters
    Type Name Description
    TensorFloat X

    The input tensor.

    ReadOnlySpan<int> axes

    The axes along which to reduce.

    bool keepdim

    Whether to keep the reduced axes in the output tensor.

    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)