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

来源:互联网 发布:围巾怎么系 知乎 编辑:程序博客网 时间:2024/05/21 15:02

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
阅读全文
0 0