from keras.utils import plot_model
plot_model(model, to_file='./model.png',show_shapes=True)
安装GraphViz过程中按网上的方法不行:
- 安装GraphViz
- 添加环境变量
- pip 安装pydot
直接输入命令:
conda install GraphViz --channel conda-forge -y
原文链接:https://blog.csdn.net/u012950413/article/details/84929306