cos¶
- dragon.math.- cos(
 inputs,
 **kwargs
 )[source]¶
- Compute the cos of input. \[\text{out} = \cos(\text{input}) \]- Examples: - x = dragon.constant([0., math.pi]) print(dragon.math.cos(x)) # [1., -1.] - Parameters:
- inputs (dragon.Tensor) – The input tensor.
 
 - Returns:
- dragon.Tensor – The output tensor. 
 
