keras画出构建的模型 1、安装画图模块 conda install pydot 2、画图代码 from keras.utils import plot_model plot_model(model,to_file="model.png",show_shapes=True) 如下图所示