aboutsummaryrefslogtreecommitdiff
path: root/arm_compute
diff options
context:
space:
mode:
authorJohn Kesapides <john.kesapides@arm.com>2019-02-26 14:52:12 +0000
committerJohn Kesapides <john.kesapides@arm.com>2019-04-10 10:42:53 +0000
commit8d94269d7985b9cee67e52581e2f58b6c99d7f0d (patch)
tree33d12c8ae7a6de559dae4a12f240b2e228cfe3ef /arm_compute
parent165308cf6904f800206217ad2f09b8e5c8d5c286 (diff)
downloadComputeLibrary-8d94269d7985b9cee67e52581e2f58b6c99d7f0d.tar.gz
COMPMID-1492 Create tests/validate_examples/graph_depthwise_convolution
Add new validate graph example and unify common example code Change-Id: Ibfd7ae2067ad805d6c82d953fe3febfbea961149 Signed-off-by: John Kesapides <john.kesapides@arm.com> Reviewed-on: https://review.mlplatform.org/c/825 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 'arm_compute')
-rw-r--r--arm_compute/graph/TypeLoader.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/arm_compute/graph/TypeLoader.h b/arm_compute/graph/TypeLoader.h
index dcdc1736a7..41f382ad1d 100644
--- a/arm_compute/graph/TypeLoader.h
+++ b/arm_compute/graph/TypeLoader.h
@@ -123,6 +123,30 @@ inline ::std::istream &operator>>(::std::istream &stream, ConvolutionMethod &tar
target = Convolution_method_from_name(value);
return stream;
}
+
+/** Converts a string to a strong types enumeration @ref DepthwiseConvolutionMethod
+ *
+ * @param[in] name String to convert
+ *
+ * @return Converted Target enumeration
+ */
+DepthwiseConvolutionMethod depthwise_convolution_method_from_name(const std::string &name);
+
+/** Input Stream operator for @ref DepthwiseConvolutionMethod
+ *
+ * @param[in] stream Stream to parse
+ * @param[out] target Output target
+ *
+ * @return Updated stream
+ */
+inline ::std::istream &operator>>(::std::istream &stream, DepthwiseConvolutionMethod &target)
+{
+ std::string value;
+ stream >> value;
+ target = depthwise_convolution_method_from_name(value);
+ return stream;
+}
+
} // namespace graph
} // namespace arm_compute
#endif /* __ARM_COMPUTE_GRAPH_TYPE_LOADER_H__ */