def METHOD_NAME(self, strategy=None):
    optimizer = paddle.optimizer.SGD(learning_rate=self.learning_rate)
    optimizer.minimize(self._cost)
    if strategy != None:
        import paddle.distributed.fleet as fleet
        optimizer = fleet.distributed_optimizer(optimizer, strategy)
    return optimizer