1. 程式人生 > 實用技巧 >AttributeError: ‘Model‘ object has no attribute ‘_get_distribution_strategy‘

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

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

錯誤顯示:在這裡插入圖片描述修改方法:
在tensorflow/python/keras/callbacks.py檔案中直接修改,修改以下兩個位置:在這裡插入圖片描述
在這裡插入圖片描述