tensorly.mean

mean(tensor, axis=None)

Compute the mean of a tensor, optionally along an axis.

Parameters
tensortensor
axisint, optional

If provided, the mean is computed along this axis.

Returns
outscalar or tensor