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

Method create_aggregators

tf_euler/python/utils/encoders.py:418–425  ·  view source on GitHub ↗
(dim, num_layers, aggregator, **kwargs)

Source from the content-addressed store, hash-verified

416
417 @staticmethod
418 def create_aggregators(dim, num_layers, aggregator, **kwargs):
419 new_aggregators = []
420 aggregator_class = aggregators.get(aggregator)
421 for layer in range(num_layers):
422 activation = tf.nn.relu if layer < num_layers - 1 else None
423 new_aggregators.append(
424 aggregator_class(dim, activation=activation, **kwargs))
425 return new_aggregators
426
427 def __init__(self, metapath, fanouts, dim,
428 aggregator='mean', concat=False, shared_aggregators=None,

Callers 2

__init__Method · 0.95
__init__Method · 0.80

Calls 2

getMethod · 0.80
appendMethod · 0.80

Tested by

no test coverage detected