1、问题:在Pycharm上运行机器学习代码出现错误AttributeError: module ‘tensorflow.python.framework.ops’ has no attribute ‘_TensorLike’
2、解决方法:修改导入keras的方式
修改前:
修改后:
PS:layers后面没有core
1、问题:在Pycharm上运行机器学习代码出现错误AttributeError: module ‘tensorflow.python.framework.ops’ has no attribute ‘_TensorLike’
2、解决方法:修改导入keras的方式
修改前:
修改后:
PS:layers后面没有core