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

