antsnormflows.utils.optim
Functions
|
Set gradients of model parameter to None as this speeds up training, |
|
Snapshots the current requires_grad flag of every parameter |
|
Restores requires_grad flags previously captured with get_requires_grad_states |
|
Sets requires_grad flag of all parameters of a torch.nn.module |
|