AttributeError: module ‘tensorflow.python.ops.nn’ has no attribute ‘leaky_relu’
报错信息
AttributeError: module 'tensorflow.python.ops.nn' has no attribute 'leaky_relu'
解决办法
pip install tensorflow==1.4 -i https://pypi.douban.com/simple
pip install keras==2.1.2 -i https://pypi.douban.com/simple
欢迎大家交流学习,任何问题都可以留言