Course 4 week 4 assignment 2 error

You filed this under General Discussion. Are you talking about DLS C4 W4 A2 (aka Neural Style Transfer)? Are you sure you didn’t modify any parts of the code outside the “YOUR CODE HERE” blocks? I’ve never seen that specific error message before, but there is an @tf.function decorator on the train_step function. Are you sure you didn’t modify that?

The first rule of debugging is “start with the error message”, right? That won’t always be the answer in the case of the autograder, but it’s at least the first thing to check.

If you’d like to get a clean copy and compare your code to how it looked originally, there is a topic about that on the DLS FAQ Thread.