提交 33e0d5c5 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!2903 Fix bus error

Merge pull request !2903 from zhoufeng/fix-bus-error
......@@ -293,6 +293,9 @@ static void RecurseToUpdateCallRealInput(NotNull<KernelGraphPtr> graph,
void InsertMakeTupleForEmptyGraph(NotNull<KernelGraphPtr> graph) {
auto return_node = graph->get_return();
MS_EXCEPTION_IF_NULL(return_node);
if (return_node->size() <= kReturnDataIndex) {
return;
}
auto origin_output = return_node->input(kReturnDataIndex);
MS_EXCEPTION_IF_NULL(origin_output);
std::vector<AnfNodePtr> make_tuple_input{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册