MCPcopy Create free account
hub / github.com/ZHKKKe/MODNet / forward

Method forward

src/models/modnet.py:72–77  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

70 )
71
72 def forward(self, x):
73 b, c, _, _ = x.size()
74 w = self.pool(x).view(b, c)
75 w = self.fc(w).view(b, c, 1, 1)
76
77 return x * w.expand_as(x)
78
79
80#------------------------------------------------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected