From e4007337ae88d0874f8d7c0bc41e9aa641de38b7 Mon Sep 17 00:00:00 2001 From: Yu Yang Date: Thu, 2 Mar 2017 15:09:21 +0800 Subject: [PATCH] Follow comments --- python/paddle/v2/trainer.py | 1 - 1 file changed, 1 deletion(-) diff --git a/python/paddle/v2/trainer.py b/python/paddle/v2/trainer.py index 58ec6dd5f..21a1642c3 100644 --- a/python/paddle/v2/trainer.py +++ b/python/paddle/v2/trainer.py @@ -122,7 +122,6 @@ class SGD(ITrainer): self.__gradient_machine__.eval(batch_evaluator) for each_param in self.__gradient_machine__.getParameters(): updater.update(each_param) - # Get cost. We use numpy to calculate total cost for this batch. cost_sum = out_args.sumCosts() cost = cost_sum / len(data_batch) updater.finishBatch(cost) -- GitLab