Shortcuts

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, returns True if module[tensor_name] is parametrized.

Parameters
  • module (nn.Module) – module to query

  • name (str, optional) – attribute in the module to query Default: None

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources