Function multiply

  • Alias for mul.

    Calculates:

    output = input * other
    

    Gradient:

    inputGrad = outputGrad * other; otherGrad = outputGrad * input
    

    Parameters

    • input: Tensor

      the input tensor of any shape

    • other: number | Tensor

      the other tensor whose shape is broadcastable with the input tensor

    Returns Tensor

    the output tensor

Generated using TypeDoc