提交 dcb91b0e 编写于 作者: Y yao_yf

fix reshape reshape case in auto parallel

上级 0f221403
......@@ -88,7 +88,9 @@ class TwoReshapeEliminater : public AnfVisitor {
auto fg = node->func_graph();
if (fg != nullptr && x_ != nullptr && shape_ != nullptr) {
return fg->NewCNode({NewValueNode(prim_), x_, shape_});
auto new_node = fg->NewCNode({NewValueNode(prim_), x_, shape_});
new_node->set_abstract(node->abstract());
return new_node;
}
return nullptr;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册