Function add

  • Calculates:

    output = input + other * alpha
    

    Gradient:

    inputGrad = outputGrad; otherGrad = outputGrad
    

    Parameters

    • input: Tensor

      the input tensor of any shape

    • other: number | Tensor

      the other tensor whose shape is broadcastable with the input tensor

    • Optional alpha: number

      the alpha value to multiply other with

    Returns Tensor

    the output tensor

Generated using TypeDoc