14 #include <boost/multi_array.hpp> 16 struct ActivationFixture
20 auto boostArrayExtents = boost::extents
22 [armnn::numeric_cast<boost::multi_array_types::extent_gen::index>(channels)]
24 [armnn::numeric_cast<boost::multi_array_types::extent_gen::index>(width)];
25 output.resize(boostArrayExtents);
26 outputExpected.resize(boostArrayExtents);
27 input.resize(boostArrayExtents);
29 unsigned int inputShape[] = { batchSize, channels, height, width };
30 unsigned int outputShape[] = { batchSize, channels, height, width };
35 input = MakeRandomTensor<float, 4>(inputTensorInfo, 21453);
38 unsigned int width = 17;
39 unsigned int height = 29;
40 unsigned int channels = 2;
41 unsigned int batchSize = 5;
43 boost::multi_array<float, 4> output;
44 boost::multi_array<float, 4> outputExpected;
45 boost::multi_array<float, 4> input;
60 input = MakeRandomTensor<float, 4>(inputTensorInfo, 2342423, 0.0f, 1.0f);
PositiveActivationFixture()
std::enable_if_t< std::is_unsigned< Source >::value &&std::is_unsigned< Dest >::value, Dest > numeric_cast(Source source)