Function exp

  • Compute the exponential of each element in a tensor. There is a method version of this static function: Tensor.exp.

    $$e^x : \forall x \in T$$

    Example

      const t = sm.randn([100])

    // equivalent calls
    const a = t.exp()
    const b = sm.exp(t)

    Returns

    Parameters

    Returns Tensor

Generated using TypeDoc