def forward(x, f, s): B, H, W, C = x.shape # e.g. 64, 16, 16, 3 Fh, Fw, C, _ = f.shape # e.g. 4, 4, 3, 3 # C is r