If you have tensor A with shape of [1, a, b, c] then calling A.mean(0) will return you new tensor with averaged over zero-axis elements.
Since you have A.size(0) = 1 nothing will happen after doing so.
If you want to average whole tensor you have to do it by A.mean()