Model summary in pytorch

前端 未结 12 1307
南旧
南旧 2020-12-02 05:45

Is there any way, I can print the summary of a model in PyTorch like model.summary() method does in Keras as follows?

Model Summary:
___________         


        
12条回答
  •  猫巷女王i
    2020-12-02 06:34

    AFAK there is no model.summary() like equivalent in pytorch

    Meanwhile you can refer script by szagoruyko, which gives a nice visualizaton like in resnet18-example

    Cheers

提交回复
热议问题