Thanks for your clarification! I suppose that should be mentioned in the documentation  At this moment the documentation says:

‘mean’: the sum of the output will be divided by the number of elements in the output,

That was the source of my misunderstanding.