From b4e85030cd7cbc108c0956195ec88e3d3b7c24d4 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 11 Dec 2020 21:39:20 +0800 Subject: [PATCH] Add pytorch input const. --- ge/graph/preprocess/graph_preprocess.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ge/graph/preprocess/graph_preprocess.cc b/ge/graph/preprocess/graph_preprocess.cc index ccce250d..c442afe8 100644 --- a/ge/graph/preprocess/graph_preprocess.cc +++ b/ge/graph/preprocess/graph_preprocess.cc @@ -1797,12 +1797,12 @@ Status GraphPrepare::PrepareOptimize() { } void GraphPrepare::TypeConversionOfConstant() { - bool is_acl_comlpile = false; + bool is_acl_compile = false; for (ge::NodePtr &n : compute_graph_->GetAllNodes()) { // This can ensure that n is not a null pointer // No Conversion when called by aclOpCompile - (void)AttrUtils::GetBool(n->GetOpDesc(), ATTR_DYNAMIC_SHAPE_SINGLE_AICPU, is_acl_comlpile)); - if (is_acl_comlpile) { + (void)AttrUtils::GetBool(n->GetOpDesc(), ATTR_DYNAMIC_SHAPE_SINGLE_AICPU, is_acl_compile)); + if (is_acl_compile) { return; } }