24 #ifndef __ARM_COMPUTE_TEST_NEON_HELPER_H__ 25 #define __ARM_COMPUTE_TEST_NEON_HELPER_H__ 40 template <
typename D,
typename T,
typename... Ts>
41 void fill_tensors(D &&dist, std::initializer_list<int> seeds, T &&tensor, Ts &&... other_tensors)
43 const std::array < T, 1 +
sizeof...(Ts) > tensors{ { std::forward<T>(tensor), std::forward<Ts>(other_tensors)... } };
44 std::vector<int> vs(seeds);
47 for(
auto tp : tensors)
62 template <
typename... Args>
65 auto k = arm_compute::support::cpp14::make_unique<K>();
66 k->configure(std::forward<Args>(args)...);
67 _kernel = std::move(k);
72 template <
typename K,
int bordersize>
81 template <
typename T,
typename... Args>
84 auto k = arm_compute::support::cpp14::make_unique<K>();
85 k->configure(first, std::forward<Args>(args)...);
86 _kernel = std::move(k);
As above but this also setups a Zero border on the input tensor of the specified bordersize.
Class describing the value of a pixel for any image format.
void configure(Args &&...args)
Configure the kernel.
Container for 2D border size.
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
This file contains all available output stages for GEMMLowp on OpenCL.
Accessor implementation for Tensor objects.
std::unique_ptr< AssetsLibrary > library
void configure(T first, Args &&...args)
Configure the kernel.
This template synthetizes an INESimpleFunction which runs the given kernel K.
Pixels outside the image are assumed to have a constant value.
Basic interface for functions which have a single NEON kernel.
void fill_tensors(D &&dist, std::initializer_list< int > seeds, T &&tensor, Ts &&...other_tensors)