aboutsummaryrefslogtreecommitdiff
path: root/tests/NEON
diff options
context:
space:
mode:
authorPablo Tello <pablo.tello@arm.com>2017-11-23 15:50:08 +0000
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:41:36 +0000
commit2fdc40956a4d521ec811bf33aafd0b1e756d6d54 (patch)
tree55d502e719846b49a54ba6fc30c3a41172cd183c /tests/NEON
parent564ed39da0fd8a0d45d62e6f985f5bb798d8361d (diff)
downloadComputeLibrary-2fdc40956a4d521ec811bf33aafd0b1e756d6d54.tar.gz
COMPMID-592: Ported GEMMInterleave4x4 tests.
Change-Id: I161fa095b2b8a719bb152366294f62c1aad073ce Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/110463 Tested-by: BSG Visual Compute Jenkins server to access repositories on http://mpd-gerrit.cambridge.arm.com <bsgcomp@arm.com> Reviewed-by: Anthony Barbier <anthony.barbier@arm.com> Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com>
Diffstat (limited to 'tests/NEON')
-rw-r--r--tests/NEON/Helper.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/NEON/Helper.h b/tests/NEON/Helper.h
index 8bd11cc57b..93f2010b95 100644
--- a/tests/NEON/Helper.h
+++ b/tests/NEON/Helper.h
@@ -64,6 +64,21 @@ public:
}
};
+// As above but this also setups a Zero border on the input tensor of the specified bordersize
+template <typename K, int bordersize>
+class NESynthetizeFunctionWithZeroConstantBorder : public INESimpleFunction
+{
+public:
+ 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(bordersize), BorderMode::CONSTANT, PixelValue(0));
+ }
+};
+
} // namespace test
} // namespace arm_compute
#endif /* __ARM_COMPUTE_TEST_NEON_HELPER_H__ */