(self, x, edge_index, edge_weigt=None, batch=None)
| 170 | |
| 171 | |
| 172 | def forward(self, x, edge_index, edge_weigt=None, batch=None): |
| 173 | |
| 174 | pos_h = self.encoder(x, edge_index, edge_weigt, batch) |
| 175 | |
| 176 | x_cor = infomax_corruption(x, batch) |
| 177 | neg_h = self.encoder(x_cor, edge_index, edge_weigt, batch) |
| 178 | |
| 179 | summary = torch.sigmoid(pos_h.mean(dim=0)) |
| 180 | |
| 181 | return pos_h, neg_h, summary |
| 182 | |
| 183 | def discriminate(self, h, summary): |
| 184 |
nothing calls this directly
no test coverage detected