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

Method forward

torchscript/modnet_torchscript.py:80–85  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

78 )
79
80 def forward(self, x):
81 b, c, _, _ = x.size()
82 w = self.pool(x).view(b, c)
83 w = self.fc(w).view(b, c, 1, 1)
84
85 return x * w.expand_as(x)
86
87
88#------------------------------------------------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected