(cls, inputs, **kwargs)
| 1432 | |
| 1433 | @classmethod |
| 1434 | def aggregate(cls, inputs, **kwargs): |
| 1435 | func = cls.reduction_aggregate or cls.reduction_chunk |
| 1436 | if is_scalar(inputs[-1]): |
| 1437 | return func(_concat(inputs[:-1]), inputs[-1], observed=True, **kwargs) |
| 1438 | else: |
| 1439 | return func(_concat(inputs), observed=True, **kwargs) |
| 1440 | |
| 1441 | @property |
| 1442 | def shuffle_by_index(self): |