I don’t know, if I could post a question here. But it’d great to find a soluton because honestly , I don’t understand what wrong here
optimizer = optim.Adam(net.parameters(), lr=0.001 )
EPOCHS = 3
for epoch in range(EPOCHS):
for data in trainset:
X, y = data 

#Make the zero_grad()

net.zero_grad()

#output of the loss created

input = net(X.view(-1, 784)



#calculating the loss

loss = F.nll_loss(input, y)  # calc and grab the loss value

loss.backward()  # apply this loss backwards thru the network's parameters

optimizer.step()  # attempt to optimize weights to account for loss/gradients

print(loss)  # print loss. We hope loss (a measure of wrong-ness) declines!
But this keeps showing error at loss = F.nll_loss(input, y) and the error is SyntaxError, how do I solve it ?
I am new to deep learning, but I have experience with sklearn