class_docstr: Applies initializers to the parameters of a Module based on regex matches.  Any parameter not
  explicitly matching a regex will not be initialized, instead using whatever the default
  initialization was in the module's code.
docstr: Applies an initializer to all parameters in a module that match one of the regexes we were
  given in this object's constructor.  Does nothing to parameters that do not match.
  
  Parameters
  ----------
  module : torch.nn.Module, required.
      The Pytorch module to apply the initializers to.
docstr_tok: ["Applies","an","initializer","to","all","parameters","in","a","module","that","match","one","of","the","regexes","we","were","given","in","this","object","'s","constructor",".","Does","nothing","to","parameters","that","do","not","match",".","Parameters","--","--","--","--","--","module",":","torch.nn.Module",",","required",".","The","Pytorch","module","to","apply","the","initializers","to","."]
code: def __call__(self, module):
      """
      Applies an initializer to all parameters in a module that match one of the regexes we were
      given in this object's constructor.  Does nothing to parameters that do not match.
  
      Parameters
      ----------
      module : torch.nn.Module, required.
          The Pytorch module to apply the initializers to.
      """
      logger.info("Initializing parameters")
      unused_regexes = set(
          [initializer[0] for initializer in self._initializers]
      )
      uninitialized_parameters = set()
      # Store which initialisers were applied to which parameters.
      for name, parameter in module.named_parameters():
          for initializer_regex, initializer in self._initializers:
              allow = self._prevent_regex is None or not bool(
                  re.search(self._prevent_regex, name)
              )
              if allow and re.search(initializer_regex, name):
                  logger.info(
                      "Initializing %s using %s intitializer",
                      name,
                      initializer_regex,
                  )
                  initializer(parameter)
                  unused_regexes.discard(initializer_regex)
                  break
          else:  # no break
              uninitialized_parameters.add(name)
      for regex in unused_regexes:
          logger.warning(
              "Did not use initialization regex that was passed: %s",
              regex,
          )
      logger.info(
          "Done initializing parameters; the following parameters are using their "
          "default initialization from their code"
      )
      uninitialized_parameter_list = list(uninitialized_parameters)
      uninitialized_parameter_list.sort()
      for name in uninitialized_parameter_list:
          logger.info("   %s", name)
  
imports: from __future__ import division
  from __future__ import absolute_import
  import logging
  import re
  import math
  import itertools
  import torch
  import torch.nn.init
  from allennlp.common import Registrable
  from allennlp.common.params import Params
  from allennlp.common.checks import ConfigurationError
label_desc: Use image node_id 2 for calling the InitializerApplicator obj's underlying member method code with example usage: obj.__call__(module) without return types