Receptive field

In pytorch, is there a component that can compute receptive field automatically?