    def __call__(self, module: torch.nn.Module) -> torch.Tensor:
        """
        # Parameters

        module : `torch.nn.Module`, required
            The module to regularize.
        """
        accumulator = 0.0
        for name, parameter in module.named_parameters():
            # We first check if the parameter needs gradient updates or not
            if parameter.requires_grad:
                # For each parameter find the first matching regex.
                for regex, regularizer in self._regularizers:
                    if re.search(regex, name):
                        penalty = regularizer(parameter)
                        accumulator = accumulator + penalty
                        break
        return accumulator
# Parameters

module : `torch.nn.Module`, required
The module to regularize.
allennlp/nn/regularizers/regularizer_applicator.py