regularizer_applicator
allennlp.nn.regularizers.regularizer_applicator
RegularizerApplicator¶
class RegularizerApplicator(FromParams):
| def __init__(
| self,
| regexes: List[Tuple[str, Regularizer]] = None
| ) -> None
Applies regularizers to the parameters of a Module based on regex matches.
__call__¶
class RegularizerApplicator(FromParams):
| ...
| def __call__(self, module: torch.nn.Module) -> torch.Tensor
Parameters¶
- module :
torch.nn.Module
The module to regularize.