From d0572bf02ede9110719462861d445e104e391715 Mon Sep 17 00:00:00 2001 From: Qiao Longfei Date: Thu, 27 Dec 2018 10:46:55 +0800 Subject: [PATCH] add log for lazy mode test=develop --- paddle/fluid/operators/optimizers/adam_op.h | 1 + 1 file changed, 1 insertion(+) diff --git a/paddle/fluid/operators/optimizers/adam_op.h b/paddle/fluid/operators/optimizers/adam_op.h index f8c7b82053a..6b794e0d3e0 100644 --- a/paddle/fluid/operators/optimizers/adam_op.h +++ b/paddle/fluid/operators/optimizers/adam_op.h @@ -509,6 +509,7 @@ class AdamOpKernel : public framework::OpKernel { for (size_t i = 0; i < fs.size(); ++i) fs[i].wait(); } else { if (lazy_mode) { + VLOG(3) << "run cpu lazy mode"; size_t row_count = grad_merge.rows().size(); std::vector cpu_rows(grad_merge.rows()); for (size_t row_index = 0; row_index < row_count; ++row_index) { -- GitLab