I have a tensor like the following:
x = torch.tensor([[[[2, 4, 7],
[6, 5, 4],
[6, 5, 5]],
               [[12, 14, 17],
                [26, 25, 42],
                [62, 52, 52]]]])

Now I want to take the mean of the inner most 3X3 array
So my final array looks like this after taking mean:
[[[4.88],
[33.5]]]
the final size is 1x2x1