出现问题原因:
报错原因是keras.utils
模块下没有plot_model
这个函数,keras有两个实现模块,分别是keras
和tensorflow.keras
这两个模块一般情况下是可以相互转换的,前者的函数都可以换成第二个运行,但是第二个模块中的有些函数API在keras
中没有实现
解决方案:
import keras
换成from tensorflow import keras
Lineage_ 博主文章分类:TensorFlow ©著作权
出现问题原因:
报错原因是keras.utils
模块下没有plot_model
这个函数,keras有两个实现模块,分别是keras
和tensorflow.keras
这两个模块一般情况下是可以相互转换的,前者的函数都可以换成第二个运行,但是第二个模块中的有些函数API在keras
中没有实现
解决方案:
import keras
换成from tensorflow import keras
上一篇:解决numpy.core._exceptions.UFuncTypeError: ufunc ‘add‘ did not contain a loop with signature matching
安装jump server0.5.0出错
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M