32 #include "tests/validation/fixtures/Im2ColFixture.h" 64 const auto conv_size =
Size2D(3, 3);
74 const auto conv_size =
Size2D(3, 3);
84 const auto conv_size =
Size2D(3, 3);
85 const auto dilation =
Size2D(0, 1);
95 const auto conv_size =
Size2D(3, 3);
96 const auto dilation =
Size2D(1, 1);
107 const auto conv_size =
Size2D(3, 3);
108 const auto dilation =
Size2D(1, 1);
119 const auto conv_size =
Size2D(3, 3);
129 const auto conv_size =
Size2D(9, 9);
136 template <
typename T>
137 using CLIm2ColFixture = Im2ColValidationFixture<CLTensor, CLAccessor, CLIm2Col, T, true>;
156 framework::dataset::
make("InputShape",
158 TensorShape(5
U, 7
U, 2
U, 2
U),
TensorShape(4
U, 6
U, 3
U, 2
U),
TensorShape(5
U, 3
U, 1
U, 2
U),
188 TensorShape(13
U, 15
U, 2
U, 2
U),
TensorShape(15
U, 12
U, 3
U, 2
U),
TensorShape(13
U, 22
U, 1
U, 2
U),
218 TensorShape(13
U, 15
U, 4
U, 2
U),
TensorShape(15
U, 12
U, 7
U, 1
U),
TensorShape(5
U, 3
U, 1
U, 1
U),
249 framework::dataset::make(
"InputShape", {
TensorShape(4
U, 4
U, 3
U, 2
U),
TensorShape(5
U, 4
U, 3
U, 2
U),
TensorShape(3
U, 4
U, 3
U, 2
U) }),
401 framework::dataset::make(
"Kernel", {
Size2D(1, 1),
Size2D(3, 3),
Size2D(5, 5),
Size2D(3, 5),
Size2D(9, 9) })),
427 framework::dataset::make(
"Kernel", {
Size2D(1, 1),
Size2D(3, 3),
Size2D(5, 5),
Size2D(3, 5),
Size2D(9, 9) })),
Interface for the im2col reshape kernel.
1 channel, 1 F32 per channel
ARM_COMPUTE_EXPECT(has_error==expected, framework::LogLevel::ERRORS)
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.
1 channel, 1 F16 per channel
Quantization information.
static Status validate(const ITensorInfo *input, const ITensorInfo *output, const Size2D &kernel_dims, const PadStrideInfo &conv_info, bool has_bias, const Size2D &dilation=Size2D(1U, 1U), unsigned int num_groups=1)
Static function to check if given info will lead to a valid configuration of CLIm2ColKernel.
DatasetMode
Possible dataset modes.
TEST_SUITE_END() FIXTURE_DATA_TEST_CASE(RunSmall
[CLActivationLayer Test snippet]
quantized, asymmetric fixed-point 8-bit number unsigned
Accessor implementation for CLTensor objects.
const unsigned int num_groups
TEST_SUITE(U8_to_S8) FIXTURE_DATA_TEST_CASE(RunSmall
Padding and stride information class.
validate(CLAccessor(output_state), expected_output)
Num samples, channels, height, width.
FIXTURE_DATA_TEST_CASE(RunSmall, CLAbsLayerFixture< half >, framework::DatasetMode::PRECOMMIT, combine(datasets::SmallShapes(), framework::dataset::make("DataType", DataType::F16)))
Class for specifying the size of an image or rectangle.
Num samples, height, width, channels.
This template synthetizes an ICLSimpleFunction which runs the given kernel K.
Store the tensor's metadata.
TEST_CASE(FusedActivation, framework::DatasetMode::ALL)
Validate fused activation expecting the following behaviours:
Im2ColValidationFixture< CLTensor, CLAccessor, CLIm2Col, T, true > CLIm2ColFixture
combine(datasets::SmallShapes(), framework::dataset::make("DataType", DataType::F32)))