def METHOD_NAME(self):
    #optimizer = getattr(torch.optim, self.optimizer)(self.parameters(), lr=self.optimizer_lr)
    opt_params = self.optimizer.copy()
    name = opt_params.pop('name')
    optimizer_instance = getattr(torch.optim, name)(self.parameters(), **opt_params)
    logging.info('created optimizer=%s', optimizer_instance)
    return optimizer_instance