(self, x1, x2)
| 42 | ) |
| 43 | |
| 44 | def forward(self, x1, x2): |
| 45 | B, _, H, W = x1.shape |
| 46 | x = torch.cat((x1, x2), dim=1) # B 2C H W |
| 47 | spatial_weights = self.mlp(x).reshape(B, 2, 1, H, W).permute(1, 0, 2, 3, 4) # 2 B 1 H W |
| 48 | return spatial_weights |
| 49 | |
| 50 | |
| 51 | # FRM |
nothing calls this directly
no outgoing calls
no test coverage detected