ConcatAggregationCombination
- class ConcatAggregationCombination(aggregation=None, dim=-1)[source]
Bases:
ConcatCombinationCombine representation by concatenation followed by an aggregation along the same axis.
Initialize the combination.
- Parameters:
Methods Summary
forward(xs)Combine a sequence of individual representations.
Iterate over the components of the
extra_repr().Methods Documentation
- forward(xs)[source]
Combine a sequence of individual representations.
- Parameters:
xs (
Sequence[FloatTensor]) – shape: (*batch_dims, *input_dims_i) the individual representations- Return type:
FloatTensor- Returns:
shape: (*batch_dims, *output_dims) a combined representation