the_coder:

Can torch.cat concatenate more than 2 models?


torch.cat concatenates tensors. In my example the output activations.
You can pass a list of tensors (also more than two) to concatenate them in a specified dimension.
The number of input features is determined by the feature size of each model output.
E.g. if you have 3 models and each returns an activation of [batch_size, 100], you would use in_features=300 in the next layer after concatenating these tensors.