diff --git a/paddle/fluid/operators/split_byref_op.h b/paddle/fluid/operators/split_byref_op.h index a3aad68ea736e223d3917607cca17f5cccfef630..fedd7218dd6cc9481e94a92a3820cafbe4157bd0 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]; } }