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

Method forward

lib/Modules.py:513–518  ·  view source on GitHub ↗
(self, feature_map)

Source from the content-addressed store, hash-verified

511 self.getalpha = getAlpha(in_channels)
512
513 def forward(self, feature_map):
514 recon_combined1,f1 = self.SAn(feature_map)
515 recon_combined2,f2 = self.SAm(f1+feature_map)
516 alpha = self.getalpha(torch.cat([f1,f2],dim=1))
517 out = feature_map+f1*alpha+f2*(1-alpha)
518 return out,recon_combined1,recon_combined2
519
520
521class GCM_interFA_ODE_slot(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected