diff --git a/doc/ui/cmd_argument/detail_introduction.md b/doc/ui/cmd_argument/detail_introduction.md index af97e04d54135bfd41fc1ac4c81af45486803dff..1f7e406a53ed4b1cf76a3aa7460326ee634d8114 100644 --- a/doc/ui/cmd_argument/detail_introduction.md +++ b/doc/ui/cmd_argument/detail_introduction.md @@ -110,7 +110,7 @@ - type: int32 (default: -1). * `--test_period_while_training` - - Run test every test_period_while_training batches while doing training. If not 0, test log_period batches, if 0, test nothing. + - Run test every test_period_while_training batches while doing training. If not 0, test test_batches_while_training batches, if 0, test nothing. - type: int32 (default: 0). * `--test_wait` diff --git a/paddle/trainer/Trainer.cpp b/paddle/trainer/Trainer.cpp index 107fa240cf37f24a4ae9147951d2d4469af83b20..507a080cc4fbe58d81523509b54e8a2f7ae3be74 100644 --- a/paddle/trainer/Trainer.cpp +++ b/paddle/trainer/Trainer.cpp @@ -45,8 +45,8 @@ P_DEFINE_int32(test_period, 0, "This option was deprecated, use test_period_while_training " " instead. "); P_DEFINE_int32(test_period_while_training, 0, - "Run test every so many train batches." - " If not 0, test log_period batches." + "Run test every test_period_while_training batches." + " If not 0, test test_batches_while_training batches." " If 0, test nothing."); P_DEFINE_int32(test_batches_while_training, 1000, "test test_batches_while_training batches if "