我在 Windows 10 中运行 TensorFlow 2.0 GPU (CUDA)、Keras 和 Python 3.7。我收到以下错误:ImportError Traceback (most recent call last)<ipython-input-8-2fd313bcdf5e> in <module> 9 from tensorflow.keras.initializers import RandomNormal 10 from tensorflow.keras.models import Model---> 11 from tensorflow.keras.models import Input 12 from tensorflow.keras.layers import Conv2D 13 from tensorflow.keras.layers import Conv2DTransposeImportError: cannot import name 'Input' from 'tensorflow.keras.models' (C:\Users\Syd_R\anaconda3\envs\tensorflow\lib\site-packages\tensorflow_core\python\keras\api\_v2\keras\models\__init__.py)
添加回答
举报
0/150
提交
取消