def mean(x, axis=None, keepdims=False):
 axis = _normalize_axis(axis, ndim(x))
 if (x.dtype.base_dtype == tf.bool):
  x = tf.cast(x, floatx())
 return tf.reduce_mean(x, reduction_indices=axis, keep_dims=keepdims)

def mean ( x , axis = None , keepdims = False ) : axis = _normalize_axis ( axis , ndim ( x ) ) if ( x . dtype . base_dtype == tf . bool ) : x = tf . cast ( x , floatx ( ) ) return tf . reduce_mean ( x , reduction_indices = axis , keep_dims = keepdims )
returns the arithmetic mean of the given list of values .