MCPcopy Create free account
hub / github.com/ZhuYun97/ENGINE / forward

Method forward

models/encoder.py:349–362  ·  view source on GitHub ↗
(self, x, edge_index=None, **kwargs)

Source from the content-addressed store, hash-verified

347 # self.acts.append(self.activation)
348
349 def forward(self, x, edge_index=None, **kwargs):
350 for i in range(self.layer_num):
351 x = self.norms[i](self.convs[i](x))
352 if i == self.layer_num - 1 and not self.last_act:
353 pass
354 # print(i, 'pass last relu')
355 else:
356 x = self.activation(x)
357 x = self.dropout(x)
358 # x = self.activation(self.convs[i](x, edge_index, edge_weight))
359 # x = self.bns[i](x)
360 # x = self.activation(self.bns[i](self.convs[i](x, edge_index)))
361 # out_readout = self.readout(x, batch, batch_size)
362 return x
363
364 def reset_parameters(self):
365 for i in range(self.layer_num):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected