# Function log

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

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

### Example

  const t = sm.randn([100])  // equivalent calls  const a = t.log()  const b = sm.log(t)


### Returns

#### Parameters

• ##### tensor: Tensor

Tensor whose values will have their natural logarithm calculated

#### Returns Tensor

Generated using TypeDoc