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