nki.language.logical_xor — AWS Neuron Documentation (original) (raw)

This document is relevant for: Inf2, Trn1, Trn2

nki.language.logical_xor#

nki.language.logical_xor(x, y, *, dtype=<class 'bool'>, mask=None, **kwargs)[source]#

Element-wise boolean result of x XOR y.

((Similar to numpy.logical_xor))

Parameters:

Returns:

a tile with boolean result of x XOR y element-wise.

This document is relevant for: Inf2, Trn1, Trn2