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

This document is relevant for: Inf2, Trn1, Trn2

nki.language.bitwise_or#

nki.language.bitwise_or(x, y, *, dtype=None, mask=None, **kwargs)[source]#

Bitwise OR of the two inputs, element-wise.

((Similar to numpy.bitwise_or))

Computes the bit-wise OR of the underlying binary representation of the integers in the input tiles. This function implements the C/Python operator |

Parameters:

Returns:

a tile that has values x | y.

This document is relevant for: Inf2, Trn1, Trn2