AttributeError: module 'keras.optimizers' has no attribute 'Adam'
I think you are using Keras directly. Instead of giving as from keras.distribute import  —> give as from tensorflow.keras.distribute import 
Hope this would help you.. It is working for me.
When i am using "optimizer = keras.optimizers.Adam(learning_rate)" i am getting this error
"AttributeError: module 'keras.optimizers' has no attribute 'Adam". I am using python3.8 keras 2.6 and backend tensorflow 1.13.2 for running the program. Please help to resolve !