From fe5de04bde3fd065b034c1a0d9a5b07b36ae36a4 Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Tue, 19 Jun 2018 10:26:17 +0800 Subject: [PATCH] optimize doc for MomentumOptimizer --- python/paddle/fluid/optimizer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle/fluid/optimizer.py b/python/paddle/fluid/optimizer.py index 8c402cf9d5..92ae5ee074 100644 --- a/python/paddle/fluid/optimizer.py +++ b/python/paddle/fluid/optimizer.py @@ -323,11 +323,11 @@ class MomentumOptimizer(Optimizer): & if (use\_nesterov): - & param = param - gradient * learning\_rate + mu * velocity * learning\_rate + &\quad param = param - gradient * learning\_rate + mu * velocity * learning\_rate & else: - & param = param - learning\_rate * velocity + &\quad param = param - learning\_rate * velocity Args: learning_rate (float|Variable): the learning rate used to update parameters. \ -- GitLab