Browse Source

fix bug that all subgraph is unknown and netoutput format is not nd bug

tags/v1.2.0
wxl 3 years ago
parent
commit
08ecc484fd
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      ge/graph/passes/net_output_pass.cc

+ 2
- 0
ge/graph/passes/net_output_pass.cc View File

@@ -555,6 +555,8 @@ void NetOutputPass::AddInOutForNetOutputOp(const ComputeGraphPtr &graph, OpDescP
return;
}
ge::GeTensorDesc out_desc = src_node->GetOpDesc()->GetOutputDesc(src_index);
out_desc.SetFormat(FORMAT_ND);
out_desc.SetOriginFormat(FORMAT_ND);
GE_IF_BOOL_EXEC(net_output_desc->AddInputDesc(out_desc) != SUCCESS, GELOGW("add input desc failed"); return );
is_input_const.push_back(PassUtils::IsConstant(src_node));
++iter;


Loading…
Cancel
Save