W3cubDocs

/PyTorch 2.9

torch.nn.utils.parametrize.type_before_parametrizations

torch.nn.utils.parametrize.type_before_parametrizations(module) [source]

Return the module type before parametrizations were applied and if not, then it returns the module type.

Parameters

module (nn.Module) – module to get type of

Return type

type

© 2025, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://docs.pytorch.org/docs/2.9/generated/torch.nn.utils.parametrize.type_before_parametrizations.html