(self, x, subx)
| 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 |