MCPcopy Index your code
hub / github.com/PyGCL/PyGCL / forward

Method forward

examples/DGI_transductive.py:47–51  ·  view source on GitHub ↗
(self, x, edge_index)

Source from the content-addressed store, hash-verified

45 return x[torch.randperm(x.size(0))], edge_index
46
47 def forward(self, x, edge_index):
48 z = self.encoder(x, edge_index)
49 g = self.project(torch.sigmoid(z.mean(dim=0, keepdim=True)))
50 zn = self.encoder(*self.corruption(x, edge_index))
51 return z, g, zn
52
53
54def train(encoder_model, contrast_model, data, optimizer):

Callers

nothing calls this directly

Calls 2

projectMethod · 0.95
corruptionMethod · 0.95

Tested by

no test coverage detected