No gradients provided

While using the fit_generator function I’m getting this “No gradients provided” error.

Here is the link to my code:

https://drive.google.com/file/d/1Pw51fiJgXU28NE4XmKGw1caOKd-ppPqQ/view?usp=sharing

hey @Varunsh_20 ,
kindly try changing in model.compile
adam to optimizer = “adam” .

I hope this will work.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.