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

This document is relevant for: Inf2, Trn1, Trn2

nki.language.bitwise_and#

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

Bitwise AND of the two inputs, element-wise.

((Similar to numpy.bitwise_and))

Computes the bit-wise AND 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