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

Method __call__

tf_euler/python/convolution/relation_conv.py:53–61  ·  view source on GitHub ↗
(self, x, edge_index, size=None, edge_attr=None, **kwarg)

Source from the content-addressed store, hash-verified

51 self.built = True
52
53 def __call__(self, x, edge_index, size=None, edge_attr=None, **kwarg):
54 assert edge_attr is not None
55 if not self.built:
56 self.build()
57 gather_x, = self.gather_feature([x], edge_index)
58 out = self.apply_edge(gather_x[1], edge_attr)
59 out = mp_ops.scatter_(self.aggr, out, edge_index[0], size=size[0])
60 out = self.apply_node(x[0], out)
61 return out
62
63 def apply_edge(self, x_j, edge_attr):
64 edge_attr, idx = tf.unique(edge_attr)

Callers

nothing calls this directly

Calls 4

buildMethod · 0.95
apply_edgeMethod · 0.95
apply_nodeMethod · 0.95
gather_featureMethod · 0.80

Tested by

no test coverage detected