Browse Source

!1641 add infer format for single op

From: @yangyongqiang5033
Reviewed-by: @sheng-nan,@wqtshg
Signed-off-by: @wqtshg
tags/v1.3.0
mindspore-ci-bot Gitee 3 years ago
parent
commit
08a07f4331
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      ge/generator/ge_generator.cc

+ 3
- 0
ge/generator/ge_generator.cc View File

@@ -843,6 +843,9 @@ Status GeGenerator::BuildSingleOp(OpDescPtr &op_desc, const vector<GeTensor> &in
Graph graph;
GE_CHK_STATUS(BuildSingleOpGraph(op_desc, inputs, outputs, name, graph),
"[Build][Graph] for single op:%s fail.", op_desc->GetName().c_str());
auto op = OpDescUtils::CreateOperatorFromOpDesc(op_desc);
GE_CHK_STATUS_RET(op_desc->CallInferFormatFunc(op),
"[Call][InferFormatFunc] for single op:%s fail.", op_desc->GetName().c_str());

// 2. check engine type when compile online
if (model_file_name == kFileNameSuffix) {


Loading…
Cancel
Save