美文网首页
tensorflow与keras版本对应关系

tensorflow与keras版本对应关系

作者: sexy_cyber | 来源:发表于2022-01-07 12:59 被阅读0次

https://github.com/keras-team/keras
参考这里最新的动态更新

当遇到类似于下面的这种报错的时候,那就是版本不匹配


Traceback (most recent call last):
  File "G:/代码/spider-code/auto_mobile/soul_robot/home/image_check.py", line 2, in <module>
    from keras.models import load_model
  File "C:\Users\shixiaolong\AppData\Local\Programs\Python\Python36\lib\site-packages\keras\__init__.py", line 21, in <module>
    from tensorflow.python import tf2
ImportError: cannot import name 'tf2'

相关文章

网友评论

      本文标题:tensorflow与keras版本对应关系

      本文链接:https://www.haomeiwen.com/subject/dssjcrtx.html