Error in the code

I am trying to replicate the same code as in video, but still getting some error by the name of ‘FailedPreconditionError’. I am unable to counter the error , plz if you can help
Code link: -https://colab.research.google.com/drive/1RdsRe8zsq71XoxSHjUx6Qp5lYMSABJ-9?usp=sharing

Hey @saksham_thukral, you can resolve this error by replacing this line :

adam = Adam(lr=2e-4,beta_1=0.5)

by this line :

from tensorflow import keras
adam = keras.optimizers.Adam(learning_rate=2e-4,beta_1=0.5)

Hope this resolves your doubt.
Happy Learning :slight_smile:

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.