diff options
Diffstat (limited to 'src/graph/Utils.cpp')
-rw-r--r-- | src/graph/Utils.cpp | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/graph/Utils.cpp b/src/graph/Utils.cpp index 8e12689fb9..37af1bff93 100644 --- a/src/graph/Utils.cpp +++ b/src/graph/Utils.cpp @@ -46,10 +46,6 @@ Target get_default_target() { return Target::CL; } - if(is_target_supported(Target::GC)) - { - return Target::GC; - } ARM_COMPUTE_ERROR("No backend exists!"); } @@ -76,10 +72,9 @@ void force_target_to_graph(Graph &g, Target target) PassManager create_default_pass_manager(Target target, const GraphConfig &cfg) { + ARM_COMPUTE_UNUSED(target); PassManager pm; - const bool is_target_gc = target == Target::GC; - // Passes that mutate graph IR if(cfg.use_synthetic_type) { @@ -88,7 +83,7 @@ PassManager create_default_pass_manager(Target target, const GraphConfig &cfg) case DataType::QASYMM8: case DataType::QASYMM8_SIGNED: { - pm.append(std::make_unique<SyntheticDataTypeMutator>(cfg.synthetic_type), !is_target_gc); + pm.append(std::make_unique<SyntheticDataTypeMutator>(cfg.synthetic_type)); break; } default: @@ -98,13 +93,13 @@ PassManager create_default_pass_manager(Target target, const GraphConfig &cfg) } } } - pm.append(std::make_unique<NodeFusionMutator>(), !is_target_gc); + pm.append(std::make_unique<NodeFusionMutator>()); pm.append(std::make_unique<GroupedConvolutionMutator>()); - pm.append(std::make_unique<InPlaceOperationMutator>(), !is_target_gc); + pm.append(std::make_unique<InPlaceOperationMutator>()); // Passes that mutate backend information - pm.append(std::make_unique<DepthConcatSubTensorMutator>(), !is_target_gc); - pm.append(std::make_unique<SplitLayerSubTensorMutator>(), !is_target_gc); + pm.append(std::make_unique<DepthConcatSubTensorMutator>()); + pm.append(std::make_unique<SplitLayerSubTensorMutator>()); pm.append(std::make_unique<NodeExecutionMethodMutator>()); return pm; |