解决AttributeError: module 'tensorflow' has no attribute 'keras'问题
·
在学习《深度学习应用开发Tensorflow实践》课程泰坦尼克号旅客生存预测课程,使用tensorflow高级API kares时,出现AttributeError: module ‘tensorflow’ has no attribute 'keras’问题
解决方法:将model=tf.keras.models.Sequential()替换成model=tf.contrib.keras.models.Sequential(),成功执行
原因:
更多推荐
所有评论(0)