From c6a0298e2a582d22144a229664c0b99d13b3330d Mon Sep 17 00:00:00 2001 From: wangyanfei01 Date: Wed, 9 Nov 2016 17:24:21 +0800 Subject: [PATCH] create PR to polish test_period meaning --- paddle/trainer/Trainer.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/paddle/trainer/Trainer.cpp b/paddle/trainer/Trainer.cpp index 7fc48dd1fbe..32c4bad239e 100644 --- a/paddle/trainer/Trainer.cpp +++ b/paddle/trainer/Trainer.cpp @@ -46,6 +46,18 @@ P_DEFINE_int32(test_period, 0, " If not 0, test log_period batches." " If 0, test on all test data"); +P_DEFINE_int32(test_batches_while_training, 0, + "Run test every so many train batches." + " 0 for testing after each pass." + " If not 0, test log_period batches." + " If 0, test on all test data"); + +P_DEFINE_int32(test_batches_while_end, 0, + "Run test every so many train batches." + " 0 for testing after each pass." + " If not 0, test log_period batches." + " If 0, test on all test data"); + P_DEFINE_bool(local, true, "Train in local mode or not"); P_DEFINE_bool( -- GitLab