log

dragon.vm.tensorflow.math.log(
  x,
  name=None
)[source]

Compute the logarithm of input.

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

Examples:

x = tf.constant([1., 2., 3.])
print(tf.math.log(x))  # [0., 0.69314718, 1.09861229]
Parameters:
  • x (dragon.Tensor) – The input tensor.
  • name (str, optional) – A optional name for the operation.
Returns:

dragon.Tensor – The output tensor.