ConcatCombination¶
- class ConcatCombination(dim=-1)[source]¶
Bases:
Combination
Combine representation by concatenation.
Initialize the combination.
- Parameters:
dim (
int
) – the concatenation dimension
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