Solved by ptrblck in post #6 
              
              
                Sure! Here is a small example concatenating the outputs of two linear layers: 
class MyModel(nn.Module):
    def __init__(self):
        super(MyModel, self).__init__()
        self.features1 = nn.Sequential(
            nn.Conv2d(3, 6, 3, 1, 1),
            nn.ReLU(),
            nn.MaxPool2d(2),
 …