(self, optimizer_mapping, name=None)
Class constructor.

        Args:
            optimizer_mapping (dict): dictionary specifying the mapping of layers to optimizers.
                Key: ``'default'``, layer class name or layer `name` attribute.
                Don't name your layers ``'default'``. Value: the optimizer object to
                use for those layers.
Class constructor.
Class constructor .
def __init__(self, optimizer_mapping, name=None):
        """
        Class constructor.

        Args:
            optimizer_mapping (dict): dictionary specifying the mapping of layers to optimizers.
                Key: ``'default'``, layer class name or layer `name` attribute.
                Don't name your layers ``'default'``. Value: the optimizer object to
                use for those layers.
        """
        super(MultiOptimizer, self).__init__(name=name)
        self.optimizer_mapping = optimizer_mapping
        assert 'default' in self.optimizer_mapping, "Must specify a default" \
            "optimizer in layer type to optimizer mapping"

        self.map_list = None
        self.map_list_cache = dict()
def __init__ ( self , optimizer_mapping , name = None ) : super ( MultiOptimizer , self ) . __init__ ( name = name ) self . optimizer_mapping = optimizer_mapping assert 'default' in self . optimizer_mapping , "Must specify a default" "optimizer in layer type to optimizer mapping" self . map_list = None self . map_list_cache = dict ( )