diff --git a/paddle/fluid/framework/details/nccl_op_handle.h b/paddle/fluid/framework/details/nccl_op_handle.h index 7aa200fc91ec88b6c9b1bf47046bf52735977414..03e2ee1b9d703701f5213f0ee9b341802d259f34 100644 --- a/paddle/fluid/framework/details/nccl_op_handle.h +++ b/paddle/fluid/framework/details/nccl_op_handle.h @@ -71,7 +71,7 @@ class NCCLOpHandleBase : public OpHandleBase { return nccl_ctxs_; } - const ncclComm_t GetComm() const { + ncclComm_t GetComm() const { PADDLE_ENFORCE_EQ( places_.size(), 1, diff --git a/paddle/fluid/framework/ir/coalesce_grad_tensor_pass.cc b/paddle/fluid/framework/ir/coalesce_grad_tensor_pass.cc index a7a5a21b3291c4bf2e5406c92f37e1d2206865cf..b9915d57a1406ef93fdd98c3c755a7451e860bfd 100644 --- a/paddle/fluid/framework/ir/coalesce_grad_tensor_pass.cc +++ b/paddle/fluid/framework/ir/coalesce_grad_tensor_pass.cc @@ -560,7 +560,7 @@ class CoalesceGradTensorPass : public ir::Pass { } } VLOG(4) << "all_persistable:" << all_persistable; - VLOG(4) << "any_persistable:" << all_persistable; + VLOG(4) << "any_persistable:" << any_persistable; // NOTE. In scope_buffered_ssa_graph_executor, after each execution of // DropScope(), non persistable vars will be Erase or Clear. So // coalesce_tensor op needs to be executed again after the execution