keras中可以使用

from keras.utils import plot_model

plot_model(model,to_file='model_auth.png',show_shapes=True)

#show_shapes=True可以把输入输出的shape一起打印

 

注意,最好是给每个层命名,命名好之后打印出来的才会带名字。程序运行的时候也有一定的指示作用。

 

 

相关文章:

  • 2021-10-10
  • 2022-02-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-02
  • 2021-11-04
  • 2021-11-03
  • 2021-10-03
  • 2021-12-19
  • 2021-11-05
相关资源
相似解决方案