Browse Source

revert agnostic pass

tags/v1.1.0
zhou_chao1993 4 years ago
parent
commit
bba5e37edd
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      ge/graph/preprocess/graph_preprocess.cc

+ 0
- 2
ge/graph/preprocess/graph_preprocess.cc View File

@@ -117,7 +117,6 @@
#include "graph/passes/variable_op_pass.h"
#include "graph/passes/variable_prepare_op_pass.h"
#include "graph/passes/variable_ref_delete_op_pass.h"
#include "graph/passes/mark_agnostic_pass.h"


namespace ge {
@@ -1627,7 +1626,6 @@ Status GraphPrepare::PrepareOptimize() {
try {
(void)original_graph_passes.AddPass("PrepareOptimize::ShapeOperateOpRemovePass", new ShapeOperateOpRemovePass);
(void)original_graph_passes.AddPass("PrepareOptimize::ReplaceTransShapePass", new ReplaceTransShapePass);
(void)original_graph_passes.AddPass("PrepareOptimize::MarkAgnosticPass", new MarkAgnosticPass);
} catch (std::bad_alloc &e) {
GELOGE(INTERNAL_ERROR, "Add pass failed, bad memory allocation occurs.");
return INTERNAL_ERROR;


Loading…
Cancel
Save