You wouldn’t put it in such a structure. You could just write it as ss = nn.Sequential(layer1, activation, layer2, etc.)
nn.Sequential is a sequential container that allows you to build a neural network by specifying the sequential building blocks of the model.