Browse Source

!2903 Fix bus error

Merge pull request !2903 from zhoufeng/fix-bus-error
tags/v0.6.0-beta
mindspore-ci-bot Gitee 5 years ago
parent
commit
33e0d5c571
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      mindspore/ccsrc/session/ascend_session.cc

+ 3
- 0
mindspore/ccsrc/session/ascend_session.cc View File

@@ -293,6 +293,9 @@ static void RecurseToUpdateCallRealInput(NotNull<KernelGraphPtr> graph,
void InsertMakeTupleForEmptyGraph(NotNull<KernelGraphPtr> graph) { void InsertMakeTupleForEmptyGraph(NotNull<KernelGraphPtr> graph) {
auto return_node = graph->get_return(); auto return_node = graph->get_return();
MS_EXCEPTION_IF_NULL(return_node); MS_EXCEPTION_IF_NULL(return_node);
if (return_node->size() <= kReturnDataIndex) {
return;
}
auto origin_output = return_node->input(kReturnDataIndex); auto origin_output = return_node->input(kReturnDataIndex);
MS_EXCEPTION_IF_NULL(origin_output); MS_EXCEPTION_IF_NULL(origin_output);
std::vector<AnfNodePtr> make_tuple_input{ std::vector<AnfNodePtr> make_tuple_input{


Loading…
Cancel
Save