Function div

  • Calculates:

    output = input / other
    

    Gradient:

    inputGrad = outputGrad / other; otherGrad = -outputGrad * input / (other * other)
    

    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