eazygrad.log

eazygrad.log(input: _Tensor) _Tensor[source]

Compute the elementwise natural logarithm.

Parameters:

input (_Tensor) – Input tensor. Values should be strictly positive.

Returns:

_Tensor – Tensor containing log(input).

See also

torch.log