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

This document is relevant for: Inf2, Trn1, Trn2

nki.language.subtract#

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

Subtract the inputs, element-wise.

((Similar to numpy.subtract))

Parameters:

Returns:

a tile that has x - y, element-wise.

This document is relevant for: Inf2, Trn1, Trn2