aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMichele Di Giorgio <michele.digiorgio@arm.com>2021-03-18 17:32:00 +0000
committerGeorgios Pinitas <georgios.pinitas@arm.com>2021-03-26 09:22:21 +0000
commit40efd5365108b97fc8d6cb93fa1d572a08a93ad5 (patch)
treecdcd11c2a553863ae7e7df0b0c6bbd18379fb9db /utils
parenta8903c871252412c70623b5f8e284c181238a9b2 (diff)
downloadComputeLibrary-40efd5365108b97fc8d6cb93fa1d572a08a93ad5.tar.gz
Remove GLES-related code
Change-Id: I208281d6e9ec15f9dba03cfbdc36ba2bf072d592 Signed-off-by: Michele Di Giorgio <michele.digiorgio@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5314 Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/CommonGraphOptions.cpp1
-rw-r--r--utils/CommonGraphOptions.h3
-rw-r--r--utils/GraphUtils.h6
-rw-r--r--utils/ImageLoader.h6
-rw-r--r--utils/Utils.h8
5 files changed, 9 insertions, 15 deletions
diff --git a/utils/CommonGraphOptions.cpp b/utils/CommonGraphOptions.cpp
index b8808a476f..80bcbb5110 100644
--- a/utils/CommonGraphOptions.cpp
+++ b/utils/CommonGraphOptions.cpp
@@ -137,7 +137,6 @@ CommonGraphOptions::CommonGraphOptions(CommandLineParser &parser)
{
Target::NEON,
Target::CL,
- Target::GC,
};
std::set<arm_compute::DataType> supported_data_types
diff --git a/utils/CommonGraphOptions.h b/utils/CommonGraphOptions.h
index 98f020d79e..670a3073b5 100644
--- a/utils/CommonGraphOptions.h
+++ b/utils/CommonGraphOptions.h
@@ -40,7 +40,7 @@ namespace utils
*
* --help : Print the example's help message.
* --threads : The number of threads to be used by the example during execution.
- * --target : Execution target to be used by the examples. Supported target options: Neon, CL, GC.
+ * --target : Execution target to be used by the examples. Supported target options: Neon, CL.
* --type : Data type to be used by the examples. Supported data type options: QASYMM8, F16, F32.
* --layout : Data layout to be used by the examples. Supported data layout options : NCHW, NHWC.
* --enable-tuner : Toggle option to enable the OpenCL dynamic tuner.
@@ -62,7 +62,6 @@ namespace utils
*
* Note that data, image and labels options should be provided to perform an inference run on an image.
* Note that validation-file and validation-path should be provided to perform a graph accuracy estimation.
- * Note GLES target is not supported for most of the networks.
*
* Example execution commands:
*
diff --git a/utils/GraphUtils.h b/utils/GraphUtils.h
index 056648451b..8764514d7e 100644
--- a/utils/GraphUtils.h
+++ b/utils/GraphUtils.h
@@ -679,15 +679,11 @@ inline TensorShape permute_shape(TensorShape tensor_shape, DataLayout in_data_la
*/
inline graph::Target set_target_hint(int target)
{
- ARM_COMPUTE_ERROR_ON_MSG(target > 3, "Invalid target. Target must be 0 (NEON), 1 (OpenCL), 2 (OpenCL + Tuner), 3 (GLES)");
+ ARM_COMPUTE_ERROR_ON_MSG(target > 2, "Invalid target. Target must be 0 (NEON), 1 (OpenCL), 2 (OpenCL + Tuner)");
if((target == 1 || target == 2))
{
return graph::Target::CL;
}
- else if(target == 3)
- {
- return graph::Target::GC;
- }
else
{
return graph::Target::NEON;
diff --git a/utils/ImageLoader.h b/utils/ImageLoader.h
index 5abcb7a60f..aab0f5e770 100644
--- a/utils/ImageLoader.h
+++ b/utils/ImageLoader.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018-2020 Arm Limited.
+ * Copyright (c) 2018-2021 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -182,7 +182,7 @@ public:
ARM_COMPUTE_ERROR_ON(_feeder.get() == nullptr);
try
{
- // Map buffer if creating a CLTensor/GCTensor
+ // Map buffer if creating a CLTensor
map(image, true);
// Validate feeding data
@@ -238,7 +238,7 @@ public:
ARM_COMPUTE_ERROR("Unsupported format");
}
- // Unmap buffer if creating a CLTensor/GCTensor
+ // Unmap buffer if creating a CLTensor
unmap(image);
}
catch(const std::ifstream::failure &e)
diff --git a/utils/Utils.h b/utils/Utils.h
index f8c84851b5..e9fbc134b2 100644
--- a/utils/Utils.h
+++ b/utils/Utils.h
@@ -538,7 +538,7 @@ void save_to_ppm(T &tensor, const std::string &ppm_filename)
fs << "P6\n"
<< width << " " << height << " 255\n";
- // Map buffer if creating a CLTensor/GCTensor
+ // Map buffer if creating a CLTensor
map(tensor, true);
switch(tensor.info()->format())
@@ -581,7 +581,7 @@ void save_to_ppm(T &tensor, const std::string &ppm_filename)
ARM_COMPUTE_ERROR("Unsupported format");
}
- // Unmap buffer if creating a CLTensor/GCTensor
+ // Unmap buffer if creating a CLTensor
unmap(tensor);
}
catch(const std::ofstream::failure &e)
@@ -672,7 +672,7 @@ void load_trained_data(T &tensor, const std::string &filename)
throw std::runtime_error("Could not load binary data: " + filename);
}
- // Map buffer if creating a CLTensor/GCTensor
+ // Map buffer if creating a CLTensor
map(tensor, true);
Window window;
@@ -692,7 +692,7 @@ void load_trained_data(T &tensor, const std::string &filename)
},
in);
- // Unmap buffer if creating a CLTensor/GCTensor
+ // Unmap buffer if creating a CLTensor
unmap(tensor);
}
catch(const std::ofstream::failure &e)