From b2d8f6dfb63a996d793b91771b43948c0c48f6ca Mon Sep 17 00:00:00 2001 From: Allen Guo Date: Tue, 17 May 2022 17:08:13 +0800 Subject: [PATCH] [IPU] rm updateOptimizerFromHost for eval mode (#42800) * rm updateOptimizerFromHost for eval mode (#742) * rm updateOptimizerFromHost for eval mode * fix ci * clean files --- paddle/fluid/platform/device/ipu/ipu_executor.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/paddle/fluid/platform/device/ipu/ipu_executor.cc b/paddle/fluid/platform/device/ipu/ipu_executor.cc index d01f8b65bbc..4f15ecf3bab 100644 --- a/paddle/fluid/platform/device/ipu/ipu_executor.cc +++ b/paddle/fluid/platform/device/ipu/ipu_executor.cc @@ -197,7 +197,9 @@ void Executor::Run(const std::vector &inputs, } VLOG(10) << "Prepared inputs/anchors"; - if (ipu_strategy_->is_training && compiler_resources_->with_lr_sched) { + if (ipu_strategy_->is_training && compiler_resources_->with_lr_sched && + !(ipu_strategy_->popart_options.createImplicitPipeliningFwdOnlyProgram && + ipu_strategy_->runtime_options.enable_eval)) { popart::Optimizer *optimizer; if (ipu_strategy_->runtime_options.enable_eval) { VLOG(10) << "Switch optimizer to eval mode"; -- GitLab