aboutsummaryrefslogtreecommitdiff
path: root/tests/NEON
diff options
context:
space:
mode:
authorGiorgio Arena <giorgio.arena@arm.com>2019-07-12 14:49:49 +0100
committerGian Marco Iodice <gianmarco.iodice@arm.com>2019-07-26 13:52:08 +0000
commit44f5572f3d6ba8e39c4a18a991049992d590ce39 (patch)
treec78abd8f4ddd44d2ff28433fa44997be0972bc2d /tests/NEON
parentc050e0ce189585599b2b70c20aad089e58f657ff (diff)
downloadComputeLibrary-44f5572f3d6ba8e39c4a18a991049992d590ce39.tar.gz
COMPMID-2179 New generic depthwise convolution for NEON F32 NHWC
Change-Id: I2b883785c0500d4bdb6ee4700382ee058be2cd36 Signed-off-by: Giorgio Arena <giorgio.arena@arm.com> Reviewed-on: https://review.mlplatform.org/c/1538 Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com>
Diffstat (limited to 'tests/NEON')
-rw-r--r--tests/NEON/Helper.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/NEON/Helper.h b/tests/NEON/Helper.h
index c30cbc9ca9..7446e5aaa8 100644
--- a/tests/NEON/Helper.h
+++ b/tests/NEON/Helper.h
@@ -88,6 +88,26 @@ public:
}
};
+/** As above but this also setups a Zero border on the input tensor of the kernel's bordersize */
+template <typename K>
+class NESynthetizeFunctionWithZeroConstantKernelBorder : public INESimpleFunction
+{
+public:
+ /** Configure the kernel.
+ *
+ * @param[in] first First configuration argument.
+ * @param[in] args Rest of the configuration arguments.
+ */
+ template <typename T, typename... Args>
+ void configure(T first, Args &&... args)
+ {
+ auto k = arm_compute::support::cpp14::make_unique<K>();
+ k->configure(first, std::forward<Args>(args)...);
+ _kernel = std::move(k);
+ _border_handler.configure(first, BorderSize(_kernel->border_size()), BorderMode::CONSTANT, PixelValue());
+ }
+};
+
} // namespace test
} // namespace arm_compute
#endif /* __ARM_COMPUTE_TEST_NEON_HELPER_H__ */