Browse Source

Add pytorch input const.

tags/v1.2.0
unknown 3 years ago
parent
commit
2bf9bc8a53
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ge/graph/preprocess/graph_preprocess.cc

+ 1
- 1
ge/graph/preprocess/graph_preprocess.cc View File

@@ -1801,7 +1801,7 @@ void GraphPrepare::TypeConversionOfConstant() {
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_compile));
(void)AttrUtils::GetBool(n->GetOpDesc(), ATTR_DYNAMIC_SHAPE_SINGLE_AICPU, is_acl_compile);
if (is_acl_compile) {
return;
}


Loading…
Cancel
Save