未验证 提交 4430df40 编写于 作者: X xiaogang 提交者: GitHub

fix: fix op dropout and fc infershape lod bug (#2732)

上级 b918067c
...@@ -33,7 +33,7 @@ bool DropoutOp::InferShape() const { ...@@ -33,7 +33,7 @@ bool DropoutOp::InferShape() const {
param_.mask->Resize(x_dims); param_.mask->Resize(x_dims);
} }
// share LoD // share LoD
// param_.output->set_lod(param_.input->lod()); param_.output->set_lod(param_.x->lod());
return true; return true;
} }
......
...@@ -61,7 +61,7 @@ bool FcOpLite::InferShape() const { ...@@ -61,7 +61,7 @@ bool FcOpLite::InferShape() const {
param_.output->Resize(lite::DDim(output_dims)); param_.output->Resize(lite::DDim(output_dims));
// share LoD // share LoD
// param_.output->set_lod(param_.input->lod()); param_.output->set_lod(param_.input->lod());
return true; return true;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册