torch.nn.utils.parametrize.is_parametrized¶
- torch.nn.utils.parametrize.is_parametrized(module, tensor_name=None)[source][source]¶
Determine if a module has a parametrization.
- Parameters
- Returns
True
ifmodule
has a parametrization for the parameter namedtensor_name
, or if it has any parametrization whentensor_name
isNone
; otherwiseFalse
- Return type