chainerx.mean¶
- chainerx.mean(a, axis=None, keepdims=False)¶
Compute the arithmetic mean along the specified axis.
Returns the average of the array elements. The average is taken over the flattened array by default, otherwise over the specified axis.
- Parameters
a (ndarray) – Array to take the mean of.
axis (None or int or tuple of ints) – Along which axis or axes to compute
mean. The flattened array is used by default. (the) –
keepdims (bool) – If this is set to True, the axes which are reduced are
in the result as dimensions with size one. With this option (left) –
:param : :param the result will broadcast correctly against the input array.:
- Returns
The mean of
a
, along the axis or axes if specified.- Return type
See also