From ba8b0a5dc2b24f6c5ad5b91c06144f3501a0292b Mon Sep 17 00:00:00 2001 From: typhoonzero Date: Thu, 19 Apr 2018 19:50:29 +0800 Subject: [PATCH] fix mac build --- paddle/fluid/operators/split_byref_op.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/operators/split_byref_op.h b/paddle/fluid/operators/split_byref_op.h index a3aad68ea7..fedd7218dd 100644 --- a/paddle/fluid/operators/split_byref_op.h +++ b/paddle/fluid/operators/split_byref_op.h @@ -33,7 +33,7 @@ class SplitByrefOpKernel : public framework::OpKernel { // NOTE: no need to call mutable_data here to allocate memory. auto* out = outs[i]; VLOG(3) << "spliting by ref: " << row_offset << " " << out->dims()[0]; - *out = std::move(in->Slice(row_offset, row_offset + out->dims()[0])); + *out = in->Slice(row_offset, row_offset + out->dims()[0]); row_offset += out->dims()[0]; } } -- GitLab