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

Method _doconcat

src/layers.py:145–153  ·  view source on GitHub ↗
(self, x, subx)

Source from the content-addressed store, hash-verified

143 self.hiddenlayers.append(layer)
144
145 def _doconcat(self, x, subx):
146 if x is None:
147 return subx
148 if self.aggrmethod == "concat":
149 return torch.cat((x, subx), 1)
150 elif self.aggrmethod == "add":
151 return x + subx
152 elif self.aggrmethod == "nores":
153 return x
154
155 def forward(self, input, adj):
156 x = input

Callers 1

forwardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected