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

This document is relevant for: Inf2, Trn1, Trn2

nki.language.prod#

nki.language.prod(x, axis, *, dtype=None, mask=None, keepdims=False, **kwargs)[source]#

Product of elements along the specified axis (or axes) of the input.

((Similar to numpy.prod))

Parameters:

Returns:

a tile with the product of elements along the provided axis. This return tile will have a shape of the input tile’s shape with the specified axes removed.

This document is relevant for: Inf2, Trn1, Trn2