forked from OSSInnovation/mindspore
if parameter is the second input of control depend and depend mode is 0,this control relation is invalid
This commit is contained in:
parent
fafdfa9a03
commit
1ecaf912f9
|
@ -592,8 +592,8 @@ void KernelGraph::UpdateControlDependRelations(const std::vector<AnfNodePtr> &de
|
|||
if (prior_node->isa<Parameter>() && depend_mode == 1) {
|
||||
prior_nodes = GetOutputNodes(prior_node);
|
||||
}
|
||||
if (depend_node->isa<Parameter>() && depend_mode == 1) {
|
||||
depend_nodes = GetOutputNodes(depend_node);
|
||||
if (depend_node->isa<Parameter>()) {
|
||||
depend_nodes = depend_mode == 1 ? GetOutputNodes(depend_node) : std::vector<AnfNodePtr>{};
|
||||
}
|
||||
|
||||
std::vector<AnfNodePtr> real_prior_nodes;
|
||||
|
|
Loading…
Reference in New Issue