提交 b62964c5 编写于 作者: J Jiaying Zhao 提交者: GitHub

fix infershape of flatten op (#1669)

上级 d6c4c922
......@@ -36,7 +36,7 @@ void FlattenOp<DeviceType, T>::InferShape() const {
"The axis should be less than or equal to input tensor's rank.");
const auto &out_dims = GetOutputShape(axis, in_dims);
this->param_.Out()->Resize(in_dims);
this->param_.Out()->Resize(framework::make_ddim(out_dims));
}
} // namespace operators
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册