aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMohammed Suhail Munshi <MohammedSuhail.Munshi@arm.com>2023-01-03 10:16:16 +0000
committerMohammed Suhail Munshi <MohammedSuhail.Munshi@arm.com>2023-01-20 13:11:59 +0000
commita18d85c6d2c0025938c2dc10e553eb82c01922f2 (patch)
treee62ce3acdbe065bedba7355cdaba6cf32d7ce20e /utils
parent11f7d7ed4aa6293c8ad115374b7bad9bbf5a8ae7 (diff)
downloadComputeLibrary-a18d85c6d2c0025938c2dc10e553eb82c01922f2.tar.gz
Dynamic Fusion Pooling Layer 2d
- Adds Dynamic fusion PoolingLayer2D as Unfusable Operator - Indices are not supported - Adds tests for F32/F16 Datatypes Resolves : [COMPMID-5520] Signed-off-by: Mohammed Suhail Munshi <MohammedSuhail.Munshi@arm.com> Change-Id: I0d112545eb9209c836bf9ea153069f8627531e0a Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/8893 Reviewed-by: Gunes Bayir <gunes.bayir@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com> Benchmark: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/TypePrinter.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/utils/TypePrinter.h b/utils/TypePrinter.h
index 8f9c24955e..2978a238e5 100644
--- a/utils/TypePrinter.h
+++ b/utils/TypePrinter.h
@@ -42,8 +42,10 @@
#include "arm_compute/dynamic_fusion/sketch/attributes/CastAttributes.h"
#include "arm_compute/dynamic_fusion/sketch/attributes/ClampAttributes.h"
#include "arm_compute/dynamic_fusion/sketch/attributes/DepthwiseConv2dAttributes.h"
+#include "arm_compute/dynamic_fusion/sketch/attributes/Pool2dAttributes.h"
#include "arm_compute/dynamic_fusion/sketch/attributes/ResizeAttributes.h"
#include "arm_compute/dynamic_fusion/sketch/attributes/SoftmaxAttributes.h"
+#include "arm_compute/dynamic_fusion/sketch/gpu/operators/GpuPool2d.h"
#include "arm_compute/runtime/CL/CLTunerTypes.h"
#include "arm_compute/runtime/CL/CLTypes.h"
#include "arm_compute/runtime/FunctionDescriptors.h"
@@ -3407,6 +3409,65 @@ inline std::string to_string(const Padding2D &padding2d)
return str.str();
}
+/** Formatted output of the arm_compute::experimental::dynamic_fusion::Pool2dAttributes type.
+ *
+ * @param[out] os Output stream.
+ * @param[in] pool2d_attr arm_compute::experimental::dynamic_fusion::Pool2dAttributes type to output.
+ *
+ * @return Modified output stream.
+ */
+inline ::std::ostream &operator<<(::std::ostream &os, const experimental::dynamic_fusion::Pool2dAttributes &pool2d_attr)
+{
+ os << "Pool2dAttributes="
+ << "["
+ << "PoolingType=" << pool2d_attr.pool_type() << ","
+ << "PoolSize=" << pool2d_attr.pool_size() << ","
+ << "Padding=" << pool2d_attr.pad() << ","
+ << "Stride=" << pool2d_attr.stride() << ","
+ << "ExcludePadding" << pool2d_attr.exclude_padding() << "]";
+
+ return os;
+}
+
+/** Formatted output of the arm_compute::experimental::dynamic_fusion::Pool2dAttributes type.
+ *
+ * @param[in] pool2d_attr arm_compute::experimental::dynamic_fusion::Pool2dAttributes type to output.
+ *
+ * @return Formatted string.
+ */
+inline std::string to_string(const experimental::dynamic_fusion::Pool2dAttributes &pool2d_attr)
+{
+ std::stringstream str;
+ str << pool2d_attr;
+ return str.str();
+}
+
+/** Formatted output of the arm_compute::experimental::dynamic_fusion::GpuPool2dSettings type
+ *
+ * @param[out] os Output stream
+ * @param[in] settings arm_compute::dynamic_fusion::GpuPool2dSettings type to output
+ */
+inline ::std::ostream &operator<<(::std::ostream &os, const experimental::dynamic_fusion::GpuPool2dSettings &settings)
+{
+ os << "Settings="
+ << "["
+ << "FPMixedPrecision=" << settings.mixed_precision() << "]";
+ return os;
+}
+
+/** Formatted output of the arm_compute::experimental::dynamic_fusion::GpuPool2dSettings type.
+ *
+ * @param[in] settings arm_compute::experimental::dynamic_fusion::GpuPool2dSettings type to output.
+ *
+ * @return Formatted string.
+ */
+inline std::string to_string(const experimental::dynamic_fusion::GpuPool2dSettings &settings)
+{
+ std::stringstream str;
+ str << settings;
+ return str.str();
+}
+
/** Formatted output of the arm_compute::experimental::dynamic_fusion::Conv2dAttributes type.
*
* @param[out] os Output stream.
@@ -3424,6 +3485,7 @@ inline ::std::ostream &operator<<(::std::ostream &os, const experimental::dynami
return os;
}
+
/** Formatted output of the arm_compute::experimental::dynamic_fusion::Conv2dAttributes type.
*
* @param[in] conv2d_attr arm_compute::experimental::dynamic_fusion::Conv2dAttributes type to output.