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