log

dragon.math.log(
  inputs,
  **kwargs
)[source]

Compute the logarithm of input.

\[\text{out} = \log(\text{input}) \]

Examples:

x = dragon.constant([1., 2., 3.])
print(dragon.math.log(x))  # [0., 0.69314718, 1.09861229]
Parameters:
Returns:

dragon.Tensor The output tensor.