get_aggregator#
- scio.scores.utils.get_aggregator(aggr_or_ord)[source]#
Get a \(1\)D aggregator function.
- Parameters:
aggr_or_ord (
AggrNameLike | float) – Provide afloatto get a vector norm aggregator, Else, seeAggrName.- Returns:
out (
Callable[..., Tensor]) – Aggregation function that accepts an optionaldim: intargument. Depending on the aggregation method, may require input tensor to be of floating type and/or nonempty and/or nonnegative. May also acceptdim: tuple[int, ...] | None,keepdim: booland eventuallydtype.