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

Method __init__

tf_euler/python/convolution/gat_conv.py:43–51  ·  view source on GitHub ↗
(self, dim, improved=False, aggr='add', **kwargs)

Source from the content-addressed store, hash-verified

41class GATConv(conv.Conv):
42
43 def __init__(self, dim, improved=False, aggr='add', **kwargs):
44 super(GATConv, self).__init__(aggr=aggr, **kwargs)
45
46 self.dim = dim
47 self.improved = improved
48
49 self.fc = tf.layers.Dense(dim, use_bias=False)
50 self.att_i = Attention(dim)
51 self.att_j = Attention(dim)
52
53 def __call__(self, x, edge_index, size=None, **kwargs):
54 if isinstance(x, tf.Tensor):

Callers 1

__init__Method · 0.45

Calls 1

AttentionClass · 0.85

Tested by

no test coverage detected