ImportError: cannot import name 'AdamOptimizer' in gpflow

帅比萌擦擦* 提交于 2019-12-06 22:04:32
Artem Artemev

I guess it happens because you are using TF >=1.14. The released GPflow packages <= 1.4.1 support TF <=1.13.1 only. The GPflow develop branch now does support TF 1.14, but this has not yet been released.

There is an unofficial (in progress) GPflow2 with TF 2.0 support, if you are interested.

This issue is now fixed in GPflow develop. See https://github.com/GPflow/GPflow/pull/997.

Copy the fixes from this pull request (link) into your GPflow-1.4.1/gpflow/training/tensorflow_optimizer.py file and reinstall GPFlow.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!