We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bd3f976 + 7c74304 commit 04fb1fcCopy full SHA for 04fb1fc
paddle/trainer/Tester.cpp
@@ -46,6 +46,12 @@ Tester::Tester(const std::shared_ptr<TrainerConfigHelper>& config,
46
gradientMachine_(gradientMachine),
47
parameterUpdater_(parameterUpdater),
48
testDataProvider_(testDataProvider) {
49
+ if (config_->getOptConfig().use_sparse_remote_updater()) {
50
+ LOG(FATAL) << "It's prohibited to set sparse_remote_update "
51
+ << "when doing train and test jobs in the same "
52
+ << "process. You could run paddle --job=test in "
53
+ << "a separate process.";
54
+ }
55
testEvaluator_.reset(gradientMachine_->makeEvaluator());
56
if (intconfig_->distributeTest) {
57
testParameterClient_.reset(new ParameterClient2(true));
0 commit comments