logical_and¶
- dragon.math.- logical_and(
 inputs,
 **kwargs
 )[source]¶
- Compute the element-wise AND logical operation. \[\text{out} = \text{input1} \mathbin{\&} \text{input2} \]- Examples: - a = dragon.constant([False, True, False, True]) b = dragon.constant([False, True, True, False]) c = dragon.constant([0, 1, 0, 2]) d = dragon.constant([0, 3, 4, 0]) print(dragon.math.logical_and([a, b])) # [False, True, False, False] print(dragon.math.logical_and([c, d])) # [False, True, False, False] - Parameters:
- inputs (Sequence[dragon.Tensor]) – The input1 and input2 tensor.
 
 - Returns:
- dragon.Tensor – The output tensor. 
 
