From 69bf77fd1e71fc57bf0f15820a9dd34bd98c79b6 Mon Sep 17 00:00:00 2001 From: liaogang Date: Thu, 2 Mar 2017 15:09:49 +0800 Subject: [PATCH] fix trainer v2 getNonStaticParameters --- python/paddle/v2/trainer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/v2/trainer.py b/python/paddle/v2/trainer.py index bf8b181e420..44ba9d7ae11 100644 --- a/python/paddle/v2/trainer.py +++ b/python/paddle/v2/trainer.py @@ -113,7 +113,7 @@ class SGD(ITrainer): gm.forwardBackward(feeder(data_batch), out_args, pass_type) gm.eval(pass_evaluator) gm.eval(batch_evaluator) - for each_param in gm.getParameters(): + for each_param in gm.getNonStaticParameters(): updater.update(each_param) # Get cost. We use numpy to calculate total cost for this batch. cost_vec = out_args.getSlotValue(0) -- GitLab