Skip to content

Commit 9322f8c

Browse files
committed
Format
1 parent b1c22b6 commit 9322f8c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

paddle/gserver/gradientmachines/MultiGradientMachine.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ void MultiGradientMachine::getOutArgs(std::vector<Argument>* outArgs,
358358
REGISTER_TIMER("waitOutArgs");
359359
thread->waitOutArgsReady();
360360
}
361+
361362
// outArgs_.size() only need to be calculated once.
362363
static int size = threads_[threads_.size() - 1]->getOutArgs().size();
363364
outArgs_.resize(size);
@@ -574,9 +575,9 @@ void TrainerThread::forward() {
574575
REGISTER_TIMER("thread_forward");
575576
if (batchSize_ > 0) {
576577
gradientMachine_->forward(
577-
inArgs_, &outArgs_, multiMachine_->getPassType());
578+
inArgs_, &outArgs_, multiMachine_->getPassType());
578579
} else {
579-
outArgs_.clear();
580+
outArgs_.clear();
580581
}
581582
}
582583
outArgsReadySem_.post();

paddle/gserver/gradientmachines/MultiGradientMachine.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,6 @@ class TrainerThread {
470470

471471
/// indicate whether inArgs is copied before forward()
472472
bool inArgsCopied_;
473-
474473
int batchSize_;
475474
};
476475

0 commit comments

Comments
 (0)