# Codeblock 4 cam = CAM(num_channels=512, r=16) x = torch.randn(1, 512, 28, 28) out = cam(x)