Reputation: 145
A network I designed includes transposed convolutional layer. (ConvTranspose2d in pytorch)
I want to get receptive field size of my network.
Does the concept of receptive field also hold on with transposed convolutional layer?
If yes, then how can I get it?
Upvotes: 6
Views: 4259
Reputation: 67
You can use torch-scan to automatically compute receptive fields for a lot of layers. It provides support for those layers which are not supported by pytorch-receptive-field as well, such as Conv1D, ConvTranspose1D, etc. It also optionally gives effective stride and effective padding as well.
Upvotes: 3
Reputation: 751
You can use the library pytorch-receptive-field to automatically compute all layers' receptive fields.
Upvotes: 3