logical_not¶
- dragon.math.- logical_not(
 inputs,
 **kwargs
 )[source]¶
- Compute the element-wise NOT logical operation. \[\text{out} = \,\,\sim \text{input} \]- Examples: - a = dragon.constant([False, True, True]) b = dragon.constant([0, 1, 2]) print(dragon.math.logical_not(a)) # [True, False, False] print(dragon.math.logical_not(b)) # [True, False, False] - Parameters:
- inputs (dragon.Tensor) – The input tensor.
 
 - Returns:
- dragon.Tensor – The output tensor. 
 
