scripts/optimizers.py
def load_state(self, state_dict):
        """
        Loads optimizer attributes, for example from a DFO checkpoint.

        :param state_dict: a dict like self.get_state() returns
        """
        [setattr(self, attr, value) for attr, value in state_dict.items()]

        Loads optimizer attributes, for example from a DFO checkpoint.

        :param state_dict: a dict like self.get_state() returns
        
Loads optimizer attributes, for example from a DFO checkpoint.
Loads optimizer attributes for example from a DFO checkpoint .
def load_state(self, state_dict):
        [setattr(self, attr, value) for attr, value in state_dict.items()]
def load_state ( self , state_dict ) : [ setattr ( self , attr , value ) for attr , value in state_dict . items ( ) ]
Loads optimizer attributes, for example from a DFO checkpoint.
Loads optimizer attributes for example from a DFO checkpoint .
"""
        Loads optimizer attributes, for example from a DFO checkpoint.

        :param state_dict: a dict like self.get_state() returns
        """
self
state_dict
a dict like self.get_state() returns
a dict like self . get_state () returns