What you see here is just how to use the per-parameter options 540 in torch.optim.
You can use this for example for specifying different learning rates per layer (because you might not find one learning rate that works for all layers).
It’s also possible to only pass a subset of the models parameters that should be optimized (e.g. you want to do transfer learning and only update the parameters in the final layers).