我在 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 Conv2DTranspose
ImportError: 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)
天涯尽头无女友
慕田峪9158850
慕娘9325324
相关分类