cos¶
dragon.vm.tensorflow.math.
cos
(
x,
name=None
)[source]¶Compute the cos of input.
\[\text{out} = \cos(\text{input}) \]Examples:
x = tf.constant([0., math.pi]) print(tf.math.cos(x)) # [1., -1.]
- Parameters:
- x (dragon.Tensor) – The input tensor.
- name (str, optional) – The operation name.
- Returns:
dragon.Tensor – The output tensor.