Skip to content

Commit 1f2423a

Browse files
committed
follow comments: more docs
1 parent 290ee32 commit 1f2423a

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

doc/howto/cmd_parameter/detail_introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
- type: int32 (default: -1).
111111

112112
* `--test_period`
113-
- if equal 0, do test on all test data at the end of each pass while if equal non-zero, do test on all test data once each test_period batches passed while training is going on.
113+
- if equal 0, do test on all test data at the end of each pass. While if equal non-zero, do test on all test data every test_period batches.
114114
- type: int32 (default: 0).
115115

116116
* `--test_wait`

paddle/trainer/Trainer.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,8 @@ P_DEFINE_string(config, "", "Trainer config file");
4242

4343
P_DEFINE_int32(test_period, 0,
4444
"if equal 0, do test on all test data at the end of "
45-
"each pass while if equal non-zero, do test on all test "
46-
"data once each test_period batches passed while "
47-
"training is going on");
45+
"each pass. While if equal non-zero, do test on all test "
46+
"data every test_period batches");
4847
P_DEFINE_bool(test_all_data_in_one_period, false,
4948
"This option was deprecated, since we will always do "
5049
"test on all test set ");
@@ -634,9 +633,8 @@ std::unique_ptr<TesterConfig> Trainer::createTesterConfig() {
634633
LOG(WARNING)
635634
<< "The meaning of --test_period is changed: "
636635
<< "if equal 0, do test on all test data at the end of "
637-
<< "each pass while if equal non-zero, do test on all test "
638-
<< "data once each test_period batches passed while "
639-
<< "training is going on";
636+
<< "each pass. While if equal non-zero, do test on all test "
637+
<< "data every test_period batches ";
640638
}
641639
if (FLAGS_test_all_data_in_one_period) {
642640
LOG(WARNING)

0 commit comments

Comments
 (0)