No gradients provided error

Hi team,

I’ve passed the assignment, and want to summaries for my own notes, and tried again offline, and get error as follows.

I’ve tried running the functions separately, and found the issue arise from the training step. It says no gradients provided for any variable. However, I checked several times, and am sure the code is the same as the assignment. No sure if it has anything to do with the @tf.function() decorator, not quite sure how to use this.

Please find screenshots of my notes and error.




Hi Mandyzmr,

If you go offline, you have to create the same environment you have at coursera. This means you have to download all necessary files and store them in your local environment. Did you do this?