torch.nn.AvgPool2d does not need out_channels. See here 1
So this line gives you your error:



 Archy_dragon:

self.Avgpoo = m(oup) 


Just remove it and change



 Archy_dragon:

m = nn.AvgPool2d(3, 2)


to
self.Avgpoo = nn.AvgPool2d(3, 2)