From 579c92abc3960df49038a21dcd0663f01f4b080d Mon Sep 17 00:00:00 2001 From: typhoonzero Date: Tue, 7 Nov 2017 17:50:36 +0800 Subject: [PATCH] fix compile --- paddle/operators/multiplex_op.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/operators/multiplex_op.cu b/paddle/operators/multiplex_op.cu index 7adc7df164e..49ed8a88795 100644 --- a/paddle/operators/multiplex_op.cu +++ b/paddle/operators/multiplex_op.cu @@ -71,7 +71,7 @@ class MultiplexGradGPUKernel : public framework::OpKernel { index_t_cpu.CopyFrom(*ids, platform::CPUPlace(), ctx.device_context()); auto* index = index_t_cpu.data(); - auto stream = ctx.device_context().stream(); + auto stream = ctx.cuda_device_context().stream(); Place place = boost::get(ctx.GetPlace()); for (auto i = 0; i < rows; i++) { size_t k = static_cast(index[i]); -- GitLab