docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ScalarMad

    ScalarMad(TensorFloat, TensorFloat, float, float)

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

    Declaration
    public virtual void ScalarMad(TensorFloat X, TensorFloat O, float s, float b)
    Parameters
    Type Name Description
    TensorFloat X

    The input tensor.

    TensorFloat O

    The output tensor to be computed and filled.

    float s

    Input scalar for multiplication.

    float b

    Input bias for addition.

    Implements
    IBackend.ScalarMad(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)