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

Method __call__

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

Source from the content-addressed store, hash-verified

31 self.liner = tf.layers.Dense(dim, use_bias=True)
32
33 def __call__(self, x, edge_index, size=None, **kwargs):
34 h = [None if x[0] is None else self.fc(x[0]),
35 None if x[1] is None else self.fc(x[1])]
36 gather_x, gather_h = self.gather_feature([x, h], edge_index)
37 out = self.apply_edge(gather_h[1])
38 out = mp_ops.scatter_(self.aggr, out, edge_index[0], size=size[0])
39 out = self.apply_node(out, x[0])
40 return out
41
42 def apply_edge(self, x_j):
43 return x_j

Callers

nothing calls this directly

Calls 4

apply_edgeMethod · 0.95
apply_nodeMethod · 0.95
fcMethod · 0.80
gather_featureMethod · 0.80

Tested by

no test coverage detected