在编写的代码下面,from __future__ import print_functionimport kerasfrom keras.datasets import mnistfrom keras.models import Sequentialfrom keras.layers import Dense, Dropout, Flattenfrom tensorflow.keras.layers import Conv2Dfrom tensorflow.keras.layers import MaxPooling2Dfrom keras.layers import backend as kbatch_size = 128num_classes = 10epochs = 12并在问题下方,---------------------------------------------------------------------------ImportError Traceback (most recent call last)<ipython-input-1-d1183f2cea73> in <module> 8 from tensorflow.keras.layers import Conv2D 9 from tensorflow.keras.layers import MaxPooling2D---> 10 from keras.layers import backend as k 11 12 ImportError: cannot import name 'backend'需要帮助来解决这个问题注意:我使用的是Python 3.6.0。
添加回答
举报
0/150
提交
取消