log method Null safety

Tensor<T> log()

Calculates log(x) for each element.

Throws ArgumentError if tensor shapes are not equal.

Implementation

Tensor<T> log() => (toBuilder()..log()).build();