(self, wgf_u, wgr_x, wf_u, wr_x)
| 103 | self.BN_Gx = nn.BatchNorm2d(output_channel) |
| 104 | |
| 105 | def forward(self, wgf_u, wgr_x, wf_u, wr_x): |
| 106 | G_first_term = self.BN_gfu(wgf_u) |
| 107 | G_second_term = self.BN_grx(wgr_x) |
| 108 | G = F.sigmoid(G_first_term + G_second_term) |
| 109 | |
| 110 | x_first_term = self.BN_fu(wf_u) |
| 111 | x_second_term = self.BN_Gx(self.BN_rx(wr_x) * G) |
| 112 | x = F.relu(x_first_term + x_second_term) |
| 113 | |
| 114 | return x |
| 115 | |
| 116 | |
| 117 | class BasicBlock(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected