C1M2 'Adam' object is not iterable

I am currently trying to submit the programming assignment C1M2 EMNIST Letter Detective. I completed all the 4 exercises in the assignment and all the unit tests passed without any error, but only in the 5th exercise I am getting an error saying ‘Adam’ object is not iterable. If there was any mistake in defining the optimizer then how did other 4 exercises passed but it is failing only for the 5th exercise?

Please pay attention to the order in which parameters are passed. For instance, train_loader isn’t the 2nd parameter totrain_epoch.

1 Like

It worked thanks