thank you for your reply.
yes, I know  when selection is done in batch for loop it work, i tested this matter before,
However, due to performance/speed, I want to select the filters in epoch for loop,
I do not get what is the meaning of “…the params used on L2 regularization would be outdated…”  pls explain it
also when all filter is in selection (in epoch for loop) with this code It works!!!
reg_params = torch.cat([x.view(-1) for x in self.model.parameters()])