Skip to content

Commit 912f8b8

Browse files
committed
fix typo, test=allcase
1 parent fa98b20 commit 912f8b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

paddle/fluid/framework/section_worker.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ void SectionWorker::Initialize(const TrainerDesc &desc) {
3333

3434
for (auto &op : ops_) {
3535
// cache the op type during the init part
36-
// reduce unnecessary op visit during 1F1B
36+
// reduce unnecessary op visit during running
3737
int op_role = op->Attr<int>("op_role");
3838
if ((op_role == static_cast<int>(OpRole::kForward)) ||
3939
(op_role == (static_cast<int>(OpRole::kForward) |
@@ -53,7 +53,7 @@ void SectionWorker::Initialize(const TrainerDesc &desc) {
5353
optimizer_ops_.push_back(op.get());
5454
} else {
5555
PADDLE_THROW(platform::errors::PreconditionNotMet(
56-
"The op %s is None of LRSchel, Forward, Backward or Optimize.",
56+
"The op %s is None of LRSched, Forward, Backward or Optimize.",
5757
op->Type()));
5858
}
5959
}

0 commit comments

Comments
 (0)