AttributeError: ‘Model’ object has no attribute ‘_get_distribution_strategy’

错误显示:AttributeError: ‘Model‘ object has no attribute ‘_get_distribution_strategy‘修改方法:
在tensorflow/python/keras/callbacks.py文件中直接修改,修改以下两个位置:AttributeError: ‘Model‘ object has no attribute ‘_get_distribution_strategy‘
AttributeError: ‘Model‘ object has no attribute ‘_get_distribution_strategy‘

相关文章: