Hello there! I am trying to retrieve the first gradient with respect to the data and then use that gradient to do some operations. Finally, I would like to train my model weights but when I run the second gradient tape it says “Gradient does not exist for variables output”.
What could be causing that error?