提交 5ce504b1 编写于 作者: Y Yu Yang

Fix duplicated forward/backward in trainer.

上级 cdecd53b
......@@ -108,9 +108,6 @@ class SGD(ITrainer):
pass_evaluator.start()
updater.startPass()
for batch_id, data_batch in enumerate(reader()):
pass_type = updater.startBatch(len(data_batch))
self.__gradient_machine__.forwardBackward(
feeder(data_batch), out_args, pass_type)
batch_evaluator.start()
event_handler(
v2_event.BeginIteration(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册