On this page
torch.nn.utils.parametrize.is_parametrized
torch.nn.utils.parametrize.is_parametrized(module, tensor_name=None)[source]-
Returns
Trueif module has an active parametrization.If the argument
tensor_nameis specified, returnsTrueifmodule[tensor_name]is parametrized.
© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/2.1/generated/torch.nn.utils.parametrize.is_parametrized.html