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

This document is relevant for: Inf2, Trn1, Trn2

nki.language.mean#

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

Arithmetic mean along the specified axis (or axes) of the input.

((Similar to numpy.mean))

Parameters:

Returns:

a tile with the average of elements along the provided axis. This return tile will have a shape of the input tile’s shape with the specified axes removed.float32 intermediate and return values are used for integer inputs.

This document is relevant for: Inf2, Trn1, Trn2