aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2017-10-18 17:29:27 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:35:24 +0000
commit0c29cd3aac40e512d648506b1b3b8332bb45f063 (patch)
treed1ca728a9adf233f590ab7dfff8e627166c30b83 /utils
parentdaaa1fa506834c9d9ff44e5b38f05781ec416912 (diff)
downloadComputeLibrary-0c29cd3aac40e512d648506b1b3b8332bb45f063.tar.gz
COMPMID-630 : Rework nodes for selective target compilation.
Reworked nodes: -ActivationLayer Change-Id: Iaa394531ef208db48caa2c18a41ad9a845471f94 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/92281 Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com> Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/GraphTypePrinter.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/utils/GraphTypePrinter.h b/utils/GraphTypePrinter.h
index be56d59853..4ff1019cce 100644
--- a/utils/GraphTypePrinter.h
+++ b/utils/GraphTypePrinter.h
@@ -58,6 +58,31 @@ inline std::string to_string(const ConvolutionMethodHint &conv_method)
str << conv_method;
return str.str();
}
+
+/** Formatted output of the @ref TargetHint type. */
+inline ::std::ostream &operator<<(::std::ostream &os, const TargetHint &target_hint)
+{
+ switch(target_hint)
+ {
+ case TargetHint::NEON:
+ os << "NEON";
+ break;
+ case TargetHint::OPENCL:
+ os << "OPENCL";
+ break;
+ default:
+ ARM_COMPUTE_ERROR("NOT_SUPPORTED!");
+ }
+
+ return os;
+}
+
+inline std::string to_string(const TargetHint &target_hint)
+{
+ std::stringstream str;
+ str << target_hint;
+ return str.str();
+}
} // namespace graph
} // namespace arm_compute
#endif /* __ARM_COMPUTE_TEST_GRAPH_TYPE_PRINTER_H__ */