@classmethod
def from_config(cls, config):
    """Instantiates an initializer from a configuration dictionary.

        Parameters
        ----------
        config : A python dictionary.
            It will typically be the output of `get_config`.

        Returns
        -------
            An Initializer instance.
        """
    if 'dtype' in config:
        config.pop('dtype')
    return cls(**config)
