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

Method forward

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

Source from the content-addressed store, hash-verified

240 self.spatial_attention = SpatialAttentionModule()
241
242 def forward(self, x):
243 out = self.channel_attention(x) * x
244 out = self.spatial_attention(out) * out
245 return out
246
247
248class InterFA(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected