Function log1p

  • Compute the natural logarithm of one plus each element in a tensor. There is a method version of this static function: Tensor.log1p.

    $$\ln(1 + x) : \forall x \in T$$

    Example

      const t = sm.randn([100])

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

    Returns

    Parameters

    • tensor: Tensor

      Tensor whose values will have one added before their natural logarithm is calculated

    Returns Tensor

Generated using TypeDoc