Now that I have a pytorch model, how do I code the input and output of each layer, just like bottom and top in caffe

How do you know that the input and output of pytorch, similar to bottom and topin in the caffe model structure file, can be obtained from code

I don’t really know what bottom and topin are in caffe. Pytorch probably has different abstractions: http://pytorch.org/tutorials/