Function pow

  • Performs exponentiation. The pow() method is an efficient way of multiplying tensors by themselves (or their reciprocals) in large quantities.

    Parameters

    • a: Tensor

      the base tensor

    • b: number | Tensor

      the power by which to raise each tensor element

    Returns Tensor