(self, input, adj)
| 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 |