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$$
const t = sm.randn([100]) // equivalent calls const a = t.log() const b = sm.log(t)
Tensor whose values will have their natural logarithm calculated
Generated using TypeDoc
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
Returns