ImportError: cannot import name 'Input' from 'keras.models'

818 Views Asked by At

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

There are 1 best solutions below

0
Talha Tayyab On

I think it should be:

from tensorflow.keras.layers import Input

or

from tensorflow.python.keras.models import Input