every blog every motto: You can do more than you think.
0. 前言
报错记录
1. 正文
运行程序,报错如下:
ImportError: cannot import name ‘get_config’ from ‘tensorflow.python.eager.context’ (F:\public\anconda\envs\pytorch17\lib\site-packages\tensorflow\python\eager\context.py)
程序如下:
from keras.layers import Input
修改为:
from tensorflow.keras.layers import Input
end