MCPcopy Create free account
hub / github.com/NineAbyss/ZeroG / forward

Method forward

code/model.py:172–181  ·  view source on GitHub ↗
(self, x, edge_index, edge_weigt=None, batch=None)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

infomax_corruptionFunction · 0.90

Tested by

no test coverage detected