bitwise_and

dragon.bitwise.bitwise_and(
  inputs,
  **kwargs
)[source]

Compute the element-wise AND bitwise operation.

\[\text{out} = a \mathbin{\&} b \]

Examples:

a = dragon.constant([False, True, False, True])
b = dragon.constant([False, True, True, False])
print(dragon.bitwise.bitwise_and([a, b]))  # False, True, False, False
print(a * b)  # Equivalent operation
Parameters:
  • inputs (Sequence[dragon.Tensor]) – The tensor \(a\) and \(b\).
Returns:

dragon.Tensor – The output tensor.