提交 6da5670f 编写于 作者: W wanghaoshuang

revert deleting ShareLoD

上级 02897381
...@@ -34,6 +34,7 @@ class ClipOp : public framework::OperatorWithKernel { ...@@ -34,6 +34,7 @@ class ClipOp : public framework::OperatorWithKernel {
auto min = Attr<float>("min"); auto min = Attr<float>("min");
PADDLE_ENFORCE_LT(min, max, "max should be greater than min."); PADDLE_ENFORCE_LT(min, max, "max should be greater than min.");
ctx->SetOutputDim("Out", x_dims); ctx->SetOutputDim("Out", x_dims);
ctx->ShareLoD("X", /*->*/ "Out");
} }
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册