MCPcopy Create free account
hub / github.com/ChunmingHe/WS-SAM / forward

Method forward

lib/Modules.py:139–152  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

137 m.bias.data.zero_()
138
139 def forward(self, x):
140 # out = self.conv2d_list[0](x)
141 # mulBranches = [conv2d_l(x) for conv2d_l in self.conv2d_list]
142 size = x.shape[2:]
143 branch_main = self.branch_main(x)
144 branch_main = F.interpolate(branch_main, size=size, mode='bilinear', align_corners=True)
145 branch0 = self.branch0(x)
146 branch1 = self.branch1(x)
147 branch2 = self.branch2(x)
148 branch3 = self.branch3(x)
149 out = torch.cat([branch_main, branch0, branch1, branch2, branch3], 1)
150 out = self.head(out)
151 out = self.out(out)
152 return out
153
154
155"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected