docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Mad

    Mad(TensorFloat, float, float)

    Performs an element-wise Mad math operation: multiplies and adds bias to a tensor: f(A, s, b) = s * A + b.

    Declaration
    public TensorFloat Mad(TensorFloat A, float s, float b)
    Parameters
    Type Name Description
    TensorFloat A

    The argument as a tensor.

    float s

    The value of the scale for multiplication.

    float b

    The value of the bias for addition.

    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)