(self, x1, x2)
| 73 | m.bias.data.zero_() |
| 74 | |
| 75 | def forward(self, x1, x2): |
| 76 | channel_weights = self.channel_weights(x1, x2) |
| 77 | spatial_weights = self.spatial_weights(x1, x2) |
| 78 | out_x1 = x1 + self.lambda_c * channel_weights[1] * x2 + self.lambda_s * spatial_weights[1] * x2 |
| 79 | out_x2 = x2 + self.lambda_c * channel_weights[0] * x1 + self.lambda_s * spatial_weights[0] * x1 |
| 80 | return out_x1, out_x2 |
| 81 | |
| 82 | |
| 83 | # Stage 1 |
nothing calls this directly
no outgoing calls
no test coverage detected