Hi Folks,
I am trying to increase the number of hidden layers in my existing code-
D = 32*32
n = 64 
C = 1
classes = 10

fc_model = nn.Sequential(

    nn.Flatten(),

    nn.Linear(D,  n), # I/P layer

    nn.Tanh(),
 # Hidden layers
    nn.Linear(n,  n),
    nn.Tanh(),
    nn.Linear(n,  n),
    nn.Tanh(),

    nn.Linear(n, classes),

)

How would be able to write say a for loop which will repeat the hidden layers multiple times ? If i try to write a for loop within sequential, it throws a syntax error.