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

Method __init__

tf_euler/python/graph_pool/base_pool.py:22–24  ·  view source on GitHub ↗
(self, aggr='add')

Source from the content-addressed store, hash-verified

20
21class Pooling(object):
22 def __init__(self, aggr='add'):
23 assert aggr in ['add', 'mean', 'max']
24 self.aggr = aggr
25
26 def __call__(self, inputs, index, size=None):
27 size = tf.reduce_max(index) + 1 if size is None else size

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected