MCPcopy Create free account
hub / github.com/UX-Decoder/Semantic-SAM / forward

Method forward

semantic_sam/backbone/focal_dw.py:36–42  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

34 self.drop = nn.Dropout(drop)
35
36 def forward(self, x):
37 x = self.fc1(x)
38 x = self.act(x)
39 x = self.drop(x)
40 x = self.fc2(x)
41 x = self.drop(x)
42 return x
43
44class FocalModulation(nn.Module):
45 """ Focal Modulation

Callers 1

forwardMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected