bitwise_and

dragon.vm.torch.bitwise_and(
  input,
  other,
  out=None
)[source]

Compute the element-wise AND bitwise operation.

out=input&other\text{out} = \text{input} \mathbin{\&} \text{other}

Examples:

a = torch.tensor([0, -1, 2, -3, 4])
b = torch.tensor([-4, 3, -2, 1, 0])
print(torch.bitwise_and(a, b))  # [0, 3, 2, 1, 0]
Parameters:
Returns:

dragon.vm.torch.Tensor The output tensor.