24 #ifndef ARM_COMPUTE_TEST_FULLYCONNECTED_LAYER_DATASET
25 #define ARM_COMPUTE_TEST_FULLYCONNECTED_LAYER_DATASET
41 using type = std::tuple<TensorShape, TensorShape, TensorShape, TensorShape>;
45 iterator(std::vector<TensorShape>::const_iterator src_it,
46 std::vector<TensorShape>::const_iterator weights_it,
47 std::vector<TensorShape>::const_iterator biases_it,
48 std::vector<TensorShape>::const_iterator dst_it)
49 : _src_it{ std::move(src_it) },
50 _weights_it{ std::move(weights_it) },
51 _biases_it{ std::move(biases_it) },
52 _dst_it{ std::move(dst_it) }
59 description <<
"In=" << *_src_it <<
":";
60 description <<
"Weights=" << *_weights_it <<
":";
61 description <<
"Biases=" << *_biases_it <<
":";
62 description <<
"Out=" << *_dst_it;
63 return description.str();
68 return std::make_tuple(*_src_it, *_weights_it, *_biases_it, *_dst_it);
82 std::vector<TensorShape>::const_iterator _src_it;
83 std::vector<TensorShape>::const_iterator _weights_it;
84 std::vector<TensorShape>::const_iterator _biases_it;
85 std::vector<TensorShape>::const_iterator _dst_it;
90 return iterator(_src_shapes.begin(), _weight_shapes.begin(), _bias_shapes.begin(), _dst_shapes.begin());
95 return std::min(_src_shapes.size(),
std::min(_weight_shapes.size(),
std::min(_bias_shapes.size(), _dst_shapes.size())));
100 _src_shapes.emplace_back(std::move(src));
101 _weight_shapes.emplace_back(std::move(weights));
102 _bias_shapes.emplace_back(std::move(biases));
103 _dst_shapes.emplace_back(std::move(dst));
111 std::vector<TensorShape> _src_shapes{};
112 std::vector<TensorShape> _weight_shapes{};
113 std::vector<TensorShape> _bias_shapes{};
114 std::vector<TensorShape> _dst_shapes{};
131 add_config(
TensorShape(9
U, 5
U, 7
U, 3
U, 2
U),
TensorShape(315
U, 271
U),
TensorShape(271
U),
TensorShape(271
U, 3
U, 2
U));
145 add_config(
TensorShape(9
U, 5
U, 257
U, 2
U, 3
U),
TensorShape(11565
U, 2123
U),
TensorShape(2123
U),
TensorShape(2123
U, 2
U, 3
U));
fixed_point< T > min(fixed_point< T > x, fixed_point< T > y)
std::string description() const
std::tuple< TensorShape, TensorShape, TensorShape, TensorShape > type
SmallFullyConnectedLayerDataset()
iterator(std::vector< TensorShape >::const_iterator src_it, std::vector< TensorShape >::const_iterator weights_it, std::vector< TensorShape >::const_iterator biases_it, std::vector< TensorShape >::const_iterator dst_it)
LargeFullyConnectedLayerDataset()
FullyConnectedLayerDataset::type operator*() const
void add_config(TensorShape src, TensorShape weights, TensorShape biases, TensorShape dst)