From 9569255a0f8d248a6ea197ee2541f56763f5c207 Mon Sep 17 00:00:00 2001 From: wanghaoshuang Date: Thu, 21 Sep 2017 10:16:36 +0800 Subject: [PATCH] Fix ptr type --- paddle/operators/clip_op.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/operators/clip_op.h b/paddle/operators/clip_op.h index 8ed05cb9e2f..ce1d4e1f460 100644 --- a/paddle/operators/clip_op.h +++ b/paddle/operators/clip_op.h @@ -83,7 +83,7 @@ class ClipGradKernel : public framework::OpKernel { if (d_x != nullptr) { auto* x = context.Input("X"); int64_t numel = d_out->numel(); - auto d_x_data = d_x->mutable_data(context.GetPlace()); + auto* d_x_data = d_x->mutable_data(context.GetPlace()); const T* d_out_data = d_out->data(); const T* x_data = x->data(); Transform trans; -- GitLab