Hi,
The thing is that in your net, gradients are required for conv1, that means that pytorch needs to backprop through each module in conv2. So intermediary results for every operation in conv2 need to be kept around.
If conv1 was frozen or not here and if you don’t require gradients for the input, then you won’t need to backprop through conv2 and intermediary results won’t be saved.