From 02425b2f648f5dbb5773b0eab8901a42bf955f33 Mon Sep 17 00:00:00 2001 From: Qiao Longfei Date: Wed, 27 Feb 2019 09:31:27 +0800 Subject: [PATCH] fix compile --- paddle/fluid/operators/distributed_ops/recv_op.cc | 2 +- paddle/fluid/operators/distributed_ops/send_op.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/fluid/operators/distributed_ops/recv_op.cc b/paddle/fluid/operators/distributed_ops/recv_op.cc index a0185d66f..bcb16ff2e 100644 --- a/paddle/fluid/operators/distributed_ops/recv_op.cc +++ b/paddle/fluid/operators/distributed_ops/recv_op.cc @@ -57,7 +57,7 @@ class RecvOp : public framework::OperatorBase { platform::DeviceContextPool &pool = platform::DeviceContextPool::Instance(); auto *dev_ctx = pool.Get(place); - auto exe_ctx = framework::ExecutionContext(*this, scope, *dev_ctx, ctx); + auto exe_ctx = framework::ExecutionContext(*this, scope, *dev_ctx, ctx, nullptr); auto recv_functor = distributed::ParameterRecv(); recv_functor(outs[0], recv_varnames, epmap, exe_ctx, scope); } else { diff --git a/paddle/fluid/operators/distributed_ops/send_op.cc b/paddle/fluid/operators/distributed_ops/send_op.cc index 0f0ad6b8f..801909e2c 100644 --- a/paddle/fluid/operators/distributed_ops/send_op.cc +++ b/paddle/fluid/operators/distributed_ops/send_op.cc @@ -50,7 +50,7 @@ class SendOp : public framework::OperatorBase { platform::DeviceContextPool& pool = platform::DeviceContextPool::Instance(); auto* dev_ctx = pool.Get(place); - auto exe_ctx = framework::ExecutionContext(*this, scope, *dev_ctx, ctx); + auto exe_ctx = framework::ExecutionContext(*this, scope, *dev_ctx, ctx, nullptr); auto send_functor = distributed::ParameterSend(); send_functor(ins[0], send_varnames, epmap, height_sections, exe_ctx, scope, static_cast(sync_send)); -- GitLab