Browse Source

Ignore items order in HyperMap.

pull/14433/head
Zhang Qinghua 4 years ago
parent
commit
9dffcb15db
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      mindspore/ccsrc/frontend/operator/composite/composite.cc

+ 3
- 0
mindspore/ccsrc/frontend/operator/composite/composite.cc View File

@@ -186,6 +186,7 @@ AnfNodePtr HyperMap::FullMake(const std::shared_ptr<List> &type, const FuncGraph
});

auto call_node = func_graph->NewCNodeInOrder(inputs2);
call_node->AddAttr(kAttrIgnoreSideEffect, MakeValue(true));
inputs.push_back(call_node);
}
return func_graph->NewCNodeInOrder(inputs);
@@ -225,6 +226,7 @@ AnfNodePtr HyperMap::FullMake(const std::shared_ptr<Tuple> &type, const FuncGrap
});

auto call_node = func_graph->NewCNodeInOrder(inputs2);
call_node->AddAttr(kAttrIgnoreSideEffect, MakeValue(true));
inputs.push_back(call_node);
}
return func_graph->NewCNodeInOrder(inputs);
@@ -257,6 +259,7 @@ AnfNodePtr HyperMap::FullMake(const std::shared_ptr<Class> &type, const FuncGrap
}

auto call_node = func_graph->NewCNodeInOrder(inputs2);
call_node->AddAttr(kAttrIgnoreSideEffect, MakeValue(true));
inputs.push_back(call_node);
}
return func_graph->NewCNodeInOrder(inputs);


Loading…
Cancel
Save