解决 AttributeError: 'module' object has no attribute 'convolution'

Keras报错 - AttributeError: 'module' object has no attribute 'convolution' 解决记录

在OSX上第一次使用pip安装如下的whl,在tensorflow中运行正常,但是在keras中运行程序会抱 AttributeError: 'module' object has no attribute 'convolution'的错误。

pip install https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.11.0rc0-py2-none-any.whl

参考网友回答,安装相应的包没有解决相应问题。

于是通过pip uninstall 删除安装的tennsorflow包后,直接使用pip命令安装。此时在keras中运行正常。

pip install --upgrade tensorflow

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容