-
model.summary(line_length=150, positions=[0.30, 0.60, 0.7, 1.]
-
plot_model(model, to_file=’./model.png’, show_shapes=True)
需要 from keras.utils import plot_model
基于以下:
安装pydotplus库 将出错文件内pydot(python3.6不支持了)替换为 pydotplus
pip install pydotplus
安装graphviz库
sudo apt-get install graphviz
keras 显示模型结构
最新推荐文章于 2023-01-20 00:24:45 发布