提交 1f2423a9 编写于 作者: W wangyanfei01

follow comments: more docs

上级 290ee32f
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
- type: int32 (default: -1). - type: int32 (default: -1).
* `--test_period` * `--test_period`
- 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. - 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.
- type: int32 (default: 0). - type: int32 (default: 0).
* `--test_wait` * `--test_wait`
......
...@@ -42,9 +42,8 @@ P_DEFINE_string(config, "", "Trainer config file"); ...@@ -42,9 +42,8 @@ P_DEFINE_string(config, "", "Trainer config file");
P_DEFINE_int32(test_period, 0, P_DEFINE_int32(test_period, 0,
"if equal 0, do test on all test data at the end of " "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 " "each pass. While if equal non-zero, do test on all test "
"data once each test_period batches passed while " "data every test_period batches");
"training is going on");
P_DEFINE_bool(test_all_data_in_one_period, false, P_DEFINE_bool(test_all_data_in_one_period, false,
"This option was deprecated, since we will always do " "This option was deprecated, since we will always do "
"test on all test set "); "test on all test set ");
...@@ -634,9 +633,8 @@ std::unique_ptr<TesterConfig> Trainer::createTesterConfig() { ...@@ -634,9 +633,8 @@ std::unique_ptr<TesterConfig> Trainer::createTesterConfig() {
LOG(WARNING) LOG(WARNING)
<< "The meaning of --test_period is changed: " << "The meaning of --test_period is changed: "
<< "if equal 0, do test on all test data at the end of " << "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 " << "each pass. While if equal non-zero, do test on all test "
<< "data once each test_period batches passed while " << "data every test_period batches ";
<< "training is going on";
} }
if (FLAGS_test_all_data_in_one_period) { if (FLAGS_test_all_data_in_one_period) {
LOG(WARNING) LOG(WARNING)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册