tensorflow与keras版本对应关系

2022-01-07  本文已影响0人  sexy_cyber

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'
上一篇 下一篇

猜你喜欢

热点阅读