(self, x1, x2)
| 197 | m.bias.data.zero_() |
| 198 | |
| 199 | def forward(self, x1, x2): |
| 200 | B, C, H, W = x1.shape |
| 201 | x1 = x1.flatten(2).transpose(1, 2) |
| 202 | x2 = x2.flatten(2).transpose(1, 2) |
| 203 | x1, x2 = self.cross(x1, x2) |
| 204 | merge = torch.cat((x1, x2), dim=-1) |
| 205 | merge = self.channel_emb(merge, H, W) |
| 206 | |
| 207 | return merge |
nothing calls this directly
no outgoing calls
no test coverage detected