MCPcopy Create free account
hub / github.com/alibaba/euler / __call__

Method __call__

tf_euler/python/convolution/sage_conv.py:33–38  ·  view source on GitHub ↗
(self, x, edge_index, size=None, **kwargs)

Source from the content-addressed store, hash-verified

31 self.neigh_fc = tf.layers.Dense(dim, use_bias=False)
32
33 def __call__(self, x, edge_index, size=None, **kwargs):
34 gather_x, = self.gather_feature([x], edge_index)
35 out = self.apply_edge(gather_x[1])
36 out = mp_ops.scatter_(self.aggr, out, edge_index[0], size=size[0])
37 out = self.apply_node(out, x[0])
38 return out
39
40 def apply_edge(self, x_j):
41 return x_j

Callers

nothing calls this directly

Calls 3

apply_edgeMethod · 0.95
apply_nodeMethod · 0.95
gather_featureMethod · 0.80

Tested by

no test coverage detected