giagrad.Tensor.log#

Tensor.log() Tensor[source]#

Returns a new tensor with the natural logarithm of the elements of data.

\[out_i = \log_e(data_i)\]

Examples

>>> t = Tensor.empty(3).uniform() * 1e4
>>> t
tensor: [9553.524  3221.3936 6511.507 ] fn: Mul
>>> t.log()
tensor: [7.650997 8.125444 8.514212] fn: Ln