torch.nn.utils.parametrize.is_parametrized
-
torch.nn.utils.parametrize.
is_parametrized
(module, tensor_name=None)[source] Returns
True
if module has an active parametrization.If the argument
tensor_name
is specified, returnsTrue
ifmodule[tensor_name]
is parametrized.