英文:
ImportError: cannot import name 'Input' from 'keras.models'
问题
ImportError Traceback (most recent call last)
in cell 12
ImportError: cannot import name 'Input' from 'keras.models' (C:\Users\91626\AppData\Roaming\Python\Python39\site-packages\keras\models_init_.py)
英文:
please open imageImportError Traceback (most recent call last)
in cell 12
ImportError: cannot import name 'Input' from 'keras.models' (C:\Users\91626\AppData\Roaming\Python\Python39\site-packages\keras\models_init_.py)
答案1
得分: 1
我认为应该是:
from tensorflow.keras.layers import Input
或者
from tensorflow.python.keras.models import Input
英文:
I think it should be:
from tensorflow.keras.layers import Input
or
from tensorflow.python.keras.models import Input
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论