ConcatAggregationCombination
- class ConcatAggregationCombination(aggregation: str | Callable[[Tensor], Tensor] | None = None, aggregation_kwargs: Mapping[str, Any] | None = None, dim: int = -1)[source]
Bases:
ConcatCombination
Combine representation by concatenation followed by an aggregation along the same axis.
Initialize the combination.
- Parameters:
Note
The parameter pair
(aggregation, aggregation_kwargs)
is used forclass_resolver.contrib.torch.aggregation_resolver
An explanation of resolvers and how to use them is given in https://class-resolver.readthedocs.io/en/latest/.
Methods Summary
forward
(xs)Combine a sequence of individual representations.
Iterate over the components of the
extra_repr()
.Methods Documentation