This document is relevant for: Trn1, Trn2, Trn3
nki.language.invert#
- nki.language.invert(x, dtype=None)[source]#
Compute the bitwise NOT element-wise.
((Similar to numpy.invert))
Warning
This API is experimental and may change in future releases.
Input must be integer typed. Implemented as XOR with all-ones.
- Parameters:
x – a tile.
dtype – (optional) data type to cast the output type to (see Supported Data Types for more information); if not specified, it will default to be the same as the data type of the input tile.
- Returns:
a tile with the bitwise NOT result.
This document is relevant for: Trn1, Trn2, Trn3