From 6da5670f6267999ba7dfade787916ef8e4dcda36 Mon Sep 17 00:00:00 2001 From: wanghaoshuang Date: Wed, 27 Sep 2017 15:05:46 +0800 Subject: [PATCH] revert deleting ShareLoD --- paddle/operators/clip_op.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/paddle/operators/clip_op.cc b/paddle/operators/clip_op.cc index c208724c43..6b9f532064 100644 --- a/paddle/operators/clip_op.cc +++ b/paddle/operators/clip_op.cc @@ -34,6 +34,7 @@ class ClipOp : public framework::OperatorWithKernel { auto min = Attr("min"); PADDLE_ENFORCE_LT(min, max, "max should be greater than min."); ctx->SetOutputDim("Out", x_dims); + ctx->ShareLoD("X", /*->*/ "Out"); } }; -- GitLab