Error while Training my model

Hello its showing me asome error while i train my GAN model can you help me with how to rectify it? here is the colab link for it https://colab.research.google.com/drive/1vgeaVehq9AT79n1IM-OOO47NkqxFcUqS#scrollTo=OvGsOCQBmF4x

Hey @Sid10 let me help you with this error. Please replace this line of your code :

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 will help you !
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.