暫時使用代替方案: from keras.utils import plot_model import pydot plot_model(vgg, to_file='model.png',show_shapes=True)