name ‘plot_model‘ is not defined

name ‘plot_model’ is not defined

plot_model 是 Keras 的一个功能,用于可视化深度学习模型的结构。
解决方法:导入正确的库和模块

from tensorflow.keras.utils import plot_model

你可能感兴趣的:(报错解决,tensorflow)