# Codeblock 8 cbam = CBAM(num_channels=512) x = torch.randn(1, 512, 28, 28) out = cbam(x)