diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/graph/TypeLoader.cpp | 3 | ||||
-rw-r--r-- | src/graph/Utils.cpp | 17 |
2 files changed, 7 insertions, 13 deletions
diff --git a/src/graph/TypeLoader.cpp b/src/graph/TypeLoader.cpp index 7082d6b99e..8efd66f2c5 100644 --- a/src/graph/TypeLoader.cpp +++ b/src/graph/TypeLoader.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2020 Arm Limited. + * Copyright (c) 2018-2021 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -59,7 +59,6 @@ Target target_from_name(const std::string &name) { { "neon", Target::NEON }, { "cl", Target::CL }, - { "gc", Target::GC }, }; #ifndef ARM_COMPUTE_EXCEPTIONS_DISABLED 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; |