From 44f5572f3d6ba8e39c4a18a991049992d590ce39 Mon Sep 17 00:00:00 2001 From: Giorgio Arena Date: Fri, 12 Jul 2019 14:49:49 +0100 Subject: COMPMID-2179 New generic depthwise convolution for NEON F32 NHWC Change-Id: I2b883785c0500d4bdb6ee4700382ee058be2cd36 Signed-off-by: Giorgio Arena Reviewed-on: https://review.mlplatform.org/c/1538 Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins Reviewed-by: Gian Marco Iodice --- tests/NEON/Helper.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'tests/NEON') 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 +class NESynthetizeFunctionWithZeroConstantKernelBorder : public INESimpleFunction +{ +public: + /** Configure the kernel. + * + * @param[in] first First configuration argument. + * @param[in] args Rest of the configuration arguments. + */ + template + void configure(T first, Args &&... args) + { + auto k = arm_compute::support::cpp14::make_unique(); + k->configure(first, std::forward(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__ */ -- cgit v1.2.1