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

Method forward

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

Source from the content-addressed store, hash-verified

223
224
225 def forward(self, x, edge_index, edge_weigt=None, batch=None):
226 # Mask
227 mask_x, mask_nodes = self.encding_mask(x)
228 h = self.encoder(mask_x, edge_index, edge_weigt, batch)
229 h = self.encoder_to_decoder(h)
230
231 # Re-mask
232 h[mask_nodes] = 0
233 recon = self.decoder(h, edge_index, edge_weigt, batch)
234
235 return x[mask_nodes], recon[mask_nodes]
236
237
238 def encding_mask(self, x):

Callers 1

get_lossMethod · 0.95

Calls 1

encding_maskMethod · 0.95

Tested by

no test coverage detected