Model summary in pytorch

前端 未结 12 1275
南旧
南旧 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条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-02 06:35

    how does it work if I put the following inputs with the following shapes into my model? 350 is the batch_size and the 850 is just an integer.

    input_a: torch.Size([350, 6556])
    input_b: torch.Size([350, 6556])
    input_c: torch.Size([350])
    input_d: torch.Size([20, 6556])
    input_e: 850
    

提交回复
热议问题