1、问题:在Pycharm上运行机器学习代码出现错误AttributeError: module ‘tensorflow.python.framework.ops’ has no attribute ‘_TensorLike’
2、解决方法:修改导入keras的方式
修改前:
修改后:
PS:layers后面没有core
AttributeError: module ‘tensorflow.python.framework.ops‘ has no attribute ‘_TensorLike‘
最新推荐文章于 2024-07-30 17:23:09 发布