30 #include "tests/datasets/BorderModeDataset.h" 31 #include "tests/datasets/ShapeDatasets.h" 36 #include "tests/validation/fixtures/ConvolutionFixture.h" 48 using CLConvolutionFixture = ConvolutionSquareValidationFixture<CLTensor, CLAccessor, CLConvolution3x3, T>;
54 datasets::BorderModes()),
55 framework::dataset::
make("filter_size", { 3 })))
66 datasets::BorderModes()),
67 framework::dataset::
make("filter_size", { 3 })))
77 using CLConvolutionFixture = ConvolutionSquareValidationFixture<CLTensor, CLAccessor, CLConvolution5x5, T>;
83 datasets::BorderModes()),
84 framework::dataset::
make("filter_size", { 5 })))
95 datasets::BorderModes()),
96 framework::dataset::
make("filter_size", { 5 })))
105 template <
typename T>
106 using CLConvolutionFixture = ConvolutionSquareValidationFixture<CLTensor, CLAccessor, CLConvolution7x7, T>;
112 datasets::BorderModes()),
113 framework::dataset::
make("filter_size", { 7 })))
124 datasets::BorderModes()),
125 framework::dataset::
make("filter_size", { 7 })))
135 template <
typename T>
136 using CLConvolutionFixture = ConvolutionSquareValidationFixture<CLTensor, CLAccessor, CLConvolution9x9, T>;
142 datasets::BorderModes()),
143 framework::dataset::
make("filter_size", { 9 })))
154 datasets::BorderModes()),
155 framework::dataset::
make("filter_size", { 9 })))
164 template <
typename T>
165 using CLConvolutionFixture = ConvolutionRectangleValidationFixture<CLTensor, CLAccessor, CLConvolutionRectangle, T>;
171 datasets::BorderModes()),
172 framework::dataset::
make("filter_width", { 3, 5, 7, 9 })),
184 datasets::BorderModes()),
185 framework::dataset::
make("filter_width", { 3, 5, 7, 9 })),
195 template <
typename T>
196 using CLConvolutionFixture = ConvolutionSeparableValidationFixture<CLTensor, CLAccessor, CLConvolution5x5, T>;
202 datasets::BorderModes()),
214 datasets::BorderModes()),
224 template <
typename T>
225 using CLConvolutionFixture = ConvolutionSeparableValidationFixture<CLTensor, CLAccessor, CLConvolution7x7, T>;
231 datasets::BorderModes()),
243 datasets::BorderModes()),
253 template <
typename T>
254 using CLConvolutionFixture = ConvolutionSeparableValidationFixture<CLTensor, CLAccessor, CLConvolution9x9, T>;
260 datasets::BorderModes()),
272 datasets::BorderModes()),
Container for 2D border size.
1 channel, 1 U8 per channel
std::enable_if< is_container< T >::value, ContainerDataset< T > >::type make(std::string name, T &&values)
Helper function to create a ContainerDataset.
Copyright (c) 2017-2021 Arm Limited.
DatasetMode
Possible dataset modes.
TEST_SUITE_END() FIXTURE_DATA_TEST_CASE(RunSmall
[CLActivationLayer Test snippet]
Accessor implementation for CLTensor objects.
ConvolutionSquareValidationFixture< CLTensor, CLAccessor, CLConvolution3x3, T > CLConvolutionFixture
TEST_SUITE(U8_to_S8) FIXTURE_DATA_TEST_CASE(RunSmall
validate(CLAccessor(output_state), expected_output)
1 channel, 1 S16 per channel
FIXTURE_DATA_TEST_CASE(RunSmall, CLAbsLayerFixture< half >, framework::DatasetMode::PRECOMMIT, combine(datasets::SmallShapes(), framework::dataset::make("DataType", DataType::F16)))
Borders are left undefined.
JoinDataset< T, U > concat(T &&dataset1, U &&dataset2)
Helper function to create a JoinDataset.
DataType
Available data types.
combine(datasets::SmallShapes(), framework::dataset::make("DataType", DataType::F32)))
ValidRegion shape_to_valid_region(const TensorShape &a_shape, bool border_undefined=false, BorderSize border_size=BorderSize(0))
Create a valid region based on tensor shape, border mode and border size.