This document is relevant for: Trn1, Trn2, Trn3
nki.language.logical_xor#
- nki.language.logical_xor(x, y, dtype=None)[source]#
Compute the logical XOR of two tiles element-wise.
((Similar to numpy.logical_xor))
Warning
This API is experimental and may change in future releases.
Inputs should be boolean-like (0 or 1 values).
- Parameters:
x – a tile or a scalar value.
y – a tile or a scalar value. At least one of x, y must be 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 tiles, or whichever input type has the highest precision (see NKI Type Promotion for more information);
- Returns:
a tile with the logical XOR result.
This document is relevant for: Trn1, Trn2, Trn3