(self, aggr='add')
| 20 | |
| 21 | class 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 |
nothing calls this directly
no outgoing calls
no test coverage detected