cos

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

Compute the cos of input.

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

Examples:

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

dragon.Tensor – The output tensor.