aboutsummaryrefslogtreecommitdiff
path: root/utils/TypePrinter.h
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2018-07-20 13:23:44 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:54:54 +0000
commite2220551b7a64b929650ba9a60529c31e70c13c5 (patch)
tree5d609887f15b4392cdade7bb388710ceafc62260 /utils/TypePrinter.h
parenteff8d95991205e874091576e2d225f63246dd0bb (diff)
downloadComputeLibrary-e2220551b7a64b929650ba9a60529c31e70c13c5.tar.gz
COMPMID-1367: Enable NHWC in graph examples
Change-Id: Iabc54a3a1bdcd46a9a921cda39c7c85fef672b72 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/141449 Reviewed-by: Giorgio Arena <giorgio.arena@arm.com> Reviewed-by: Anthony Barbier <anthony.barbier@arm.com> Tested-by: Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'utils/TypePrinter.h')
-rw-r--r--utils/TypePrinter.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/utils/TypePrinter.h b/utils/TypePrinter.h
index eb03ff9b96..8bfdba9725 100644
--- a/utils/TypePrinter.h
+++ b/utils/TypePrinter.h
@@ -475,6 +475,35 @@ inline std::string to_string(const arm_compute::DataLayout &data_layout)
return str.str();
}
+/** Formatted output of the DataLayoutDimension type.
+ *
+ * @param[out] os Output stream.
+ * @param[in] data_layout_dim Data layout dimension to print.
+ *
+ * @return Modified output stream.
+ */
+inline ::std::ostream &operator<<(::std::ostream &os, const DataLayoutDimension &data_layout_dim)
+{
+ switch(data_layout_dim)
+ {
+ case DataLayoutDimension::WIDTH:
+ os << "WIDTH";
+ break;
+ case DataLayoutDimension::HEIGHT:
+ os << "HEIGHT";
+ break;
+ case DataLayoutDimension::CHANNEL:
+ os << "CHANNEL";
+ break;
+ case DataLayoutDimension::BATCHES:
+ os << "BATCHES";
+ break;
+ default:
+ ARM_COMPUTE_ERROR("NOT_SUPPORTED!");
+ }
+ return os;
+}
+
/** Formatted output of the DataType type.
*
* @param[out] os Output stream.