A=torch.rand(8,64,6,15)
m = nn.AdaptiveAvgPool2d(1)
o=m(A)
o.shape
>>torch.Size([8, 64, 1, 1])

Here what I am grasping is every 6*15 will be average to get a single value. Then
A=torch.rand(8,64,6,15)
m = nn.AdaptiveAvgPool2d(2)
o=m(A)
o.shape
>>torch.Size([8, 64, 2, 2])

Here the output shape indicates that every 5*14 grid is average to get this shape  2*2?
So the output size is denoted in kernel??
Am I right ?