latest (dev)
Copy
Latest development documentation · Updated 2026-10-15
tensorplay.functional.bitwise_or
- tensorplay.functional.bitwise_or(input: Tensor, other: Tensor, *, out: Tensor | None) Tensor[source]
Computes the bitwise OR of
inputandother. The input tensor must be of integral or Boolean types. For bool tensors, it computes the logical OR.- Parameters:
input – the first input tensor
other – the second input tensor
- Keyword Arguments:
out (Tensor, optional) – the output tensor.
Example:
>>> tensorplay.bitwise_or(tensorplay.tensor([-1, -2, 3], dtype=tensorplay.int8), tensorplay.tensor([1, 0, 3], dtype=tensorplay.int8)) tensor([-1, -2, 3], dtype=tensorplay.int8) >>> tensorplay.bitwise_or(tensorplay.tensor([True, True, False]), tensorplay.tensor([False, True, False])) tensor([ True, True, False])
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

