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

Method forward

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

Source from the content-addressed store, hash-verified

214 self.sigmoid = nn.Sigmoid()
215
216 def forward(self, x):
217 avgout = self.shared_MLP(self.avg_pool(x))
218 maxout = self.shared_MLP(self.max_pool(x))
219 return self.sigmoid(avgout + maxout)
220
221
222class SpatialAttentionModule(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected