aboutsummaryrefslogtreecommitdiff
path: root/src/core/Utils.cpp
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2017-08-31 14:21:36 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:35:24 +0000
commitcdf51455df8835e9e3bfd3e31ed389146af9a573 (patch)
tree31b0bf9302decbf8b1063f46373e3d26a9ca1409 /src/core/Utils.cpp
parent29088d517a2a9f249fe5cc851e0c97de3d4cc917 (diff)
downloadComputeLibrary-cdf51455df8835e9e3bfd3e31ed389146af9a573.tar.gz
COMPMID-515: L2 Pooling for FP32/FP16 in CL.
Change-Id: I43641fa672f5905ca62edd1f63fc93e0cf7ea382 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/85963 Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com> Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com>
Diffstat (limited to 'src/core/Utils.cpp')
-rw-r--r--src/core/Utils.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/Utils.cpp b/src/core/Utils.cpp
index 66d3fe8f78..99d39569c7 100644
--- a/src/core/Utils.cpp
+++ b/src/core/Utils.cpp
@@ -228,6 +228,18 @@ const std::string &arm_compute::string_from_norm_type(NormType type)
return norm_type_map[type];
}
+const std::string &arm_compute::string_from_pooling_type(PoolingType type)
+{
+ static std::map<PoolingType, const std::string> pool_type_map =
+ {
+ { PoolingType::MAX, "MAX" },
+ { PoolingType::AVG, "AVG" },
+ { PoolingType::L2, "L2" },
+ };
+
+ return pool_type_map[type];
+}
+
std::string arm_compute::lower_string(const std::string &val)
{
std::string res = val;