运维开发网
广告位招商联系QQ:123077622
 
广告位招商联系QQ:123077622

安装Tensorflow 2.0后的坑has no attribute 'contrib'

运维开发网 https://gingimenez.com 2020-01-25 03:43 出处:网络 作者:cfy10
The TensorFlow contrib module will not be included in TensorFlow 2.0.

AttributeError: module 'tensorflow' has no attribute 'contrib'

The TensorFlow contrib module will not be included in TensorFlow 2.0.

For more information, please see:

  • https://github.com/tensorflow/community/blob/master/rfcs/20180907-contrib-sunset.md
  • https://github.com/tensorflow/addons
  • https://github.com/tensorflow/io (for I/O related ops)

    If you depend on functionality not listed there, please file an issue.

解决办法:

笔者简单地pip uninstall tensorflow

装回1.X的版本

扫码领视频副本.gif

0

精彩评论

暂无评论...
验证码 换一张
取 消