forked from mindspore-Ecosystem/mindspore
!3082 fix argmaxwith value error in pynative mode on GPU
Merge pull request !3082 from chujinjin/fix_argmaxwithvalue_error_in_pynative_mode
This commit is contained in:
commit
6c334ca7ac
|
@ -482,7 +482,7 @@ CNodePtr SessionBasic::CreateNewCNode(const CNodePtr &cnode, bool valid_input, K
|
|||
cnode_inputs.emplace_back(new_value_node);
|
||||
}
|
||||
continue;
|
||||
} else if (anf->isa<Parameter>()) {
|
||||
} else if (anf->isa<Parameter>() && AnfAlgo::GetOutputTensorNum(anf) == 1) {
|
||||
auto new_parameter = CreateNewParameterFromParameter(anf, valid_input, graph);
|
||||
cnode_inputs.push_back(new_parameter);
|
||||
if (GetGraphIdByNode(anf) == kInvalidGraphId) {
|
||||
|
|
Loading…
Reference in New Issue