torch.nn.utils.parametrize.remove_parametrizations
- torch.nn.utils.parametrize.remove_parametrizations(module, tensor_name, leave_parametrized=True)
Remove the parametrizations on a tensor in a module.
If
leave_parametrized=True,module[tensor_name]will be set to its current output. In this case, the parametrization shall not change the of the tensor.