solidor:

The use case is to do something like


The following code is working on PyTorch 1.0-dev with nn.Module.named_parameters(), I think it is a workable work-around for me.
for name, param in model.named_parameters():
    param.requires_grad = False```