MCPcopy Create free account
hub / github.com/DropEdge/DropEdge / forward

Method forward

src/layers.py:155–166  ·  view source on GitHub ↗
(self, input, adj)

Source from the content-addressed store, hash-verified

153 return x
154
155 def forward(self, input, adj):
156 x = input
157 denseout = None
158 # Here out is the result in all levels.
159 for gc in self.hiddenlayers:
160 denseout = self._doconcat(denseout, x)
161 x = gc(x, adj)
162 x = F.dropout(x, self.dropout, training=self.training)
163
164 if not self.dense:
165 return self._doconcat(x, input)
166 return self._doconcat(x, denseout)
167
168 def get_outdim(self):
169 return self.out_features

Callers

nothing calls this directly

Calls 1

_doconcatMethod · 0.95

Tested by

no test coverage detected