def save_own_variables(self, store):
        """Get the state of this optimizer object."""
        for i, variable in enumerate(self.variables):
            store[str(i)] = variable.numpy()
Get the state of this optimizer object.
keras/src/optimizers/base_optimizer.py