Browse Source

!190 revert MarkAgnosticPass code

Merge pull request !190 from 周超/development
tags/v1.1.0
王涛 Gitee 3 years ago
parent
commit
4b9d9a99c9
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

@@ -92,7 +92,6 @@
#include "graph/passes/unused_op_remove_pass.h"
#include "graph/passes/var_is_initialized_op_pass.h"
#include "graph/passes/variable_prepare_op_pass.h"
#include "graph/passes/mark_agnostic_pass.h"
#include "graph/preprocess/insert_op/util_insert_aipp_op.h"
#include "graph/types.h"
#include "graph/utils/tensor_utils.h"
@@ -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