I have some issues to run your code: 'Model' object has no attribute '_get_distribution_strategy' Which version of Keras and TF did you use?