For context: This appears to be the re-released version of the course using trax 1.3.9
Please note that I’m reposting this as the first round didn’t get a useable response in coursera and the second round was initially posted in the wrong category here, so also doesn’t look like it’s headed for success. Not trying to spam the channels, simply still looking for help after 4 days.
I’m baffled by this error, as everything until now has been fine, passed all unit tests, etc., and this cell doesn’t seem like a challenging one, as I’ve implemented effectively the same function for the last 3 weeks or so. No idea what’s causing this error; the little documentation I found online about similar errors indicated issues with demo notebooks, which doesn’t seem useful as a troubleshooting guide. Would be thrilled if someone has an idea as to what could cause this in the training_loop function.
Have also checked my masks, as the end of the stack trace is indicating an issue there, but since that issue is in the code base, I’m unclear as how it would be referring to my functions.
Can’t tell where the error is from, but I passed this assignment a few days ago, so I assume we use the same version of Trax. I remember there were problems when I didn’t pass the parameters properly into functions, which would cause errors on the model - things like passing in “rate = dropout”, instead of just “dropout” into Dropout layer. It might not be because of this particular line, but this is an example of what I mean. You can play around with it, and read the instructions carefully again.