Help for running Adam Optimization

Hi @sagar_gupta16

Are you using import keras or import tensorflow.keras in your code?

You can try the following code, too:
from tensorflow.keras.optimizers.legacy import Adam

Let me know if this resolves your issue or if you need further assistance!

1 Like