MCPcopy Create free account
hub / github.com/buaacxf/VIPTR / forward

Method forward

modules/feature_extraction.py:105–114  ·  view source on GitHub ↗
(self, wgf_u, wgr_x, wf_u, wr_x)

Source from the content-addressed store, hash-verified

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
117class BasicBlock(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected