oneflow.Tensor.bitwise_and

Tensor.bitwise_and()

See oneflow.bitwise_and()

For example:

>>> import oneflow as flow
>>> x = flow.tensor([1, 2, 3])
>>> x.bitwise_and(4)
tensor([0, 0, 0], dtype=oneflow.int64)
>>> y = flow.tensor([2, 1, 0])
>>> x.bitwise_and(y)
tensor([0, 0, 0], dtype=oneflow.int64)