24.02.1
|
Go to the documentation of this file.
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 = Im2ColOpValidationFixture<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),
168 validate(CLAccessor(_target), _reference);
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),
198 validate(CLAccessor(_target), _reference);
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),
228 validate(CLAccessor(_target), _reference);
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) }),
382 validate(CLAccessor(_target), _reference);
401 framework::dataset::make(
"Kernel", {
Size2D(1, 1),
Size2D(3, 3),
Size2D(5, 5),
Size2D(3, 5),
Size2D(9, 9) })),
408 validate(CLAccessor(_target), _reference);
427 framework::dataset::make(
"Kernel", {
Size2D(1, 1),
Size2D(3, 3),
Size2D(5, 5),
Size2D(3, 5),
Size2D(9, 9) })),
434 validate(CLAccessor(_target), _reference);
@ NCHW
Num samples, channels, height, width.
TEST_SUITE_END() FIXTURE_DATA_TEST_CASE(RunSmall
[CLActivationLayer Test snippet]
TEST_CASE(FusedActivation, framework::DatasetMode::ALL)
Validate fused activation expecting the following behaviours:
FIXTURE_DATA_TEST_CASE(RunSmall, CLAbsLayerFixture< half >, framework::DatasetMode::PRECOMMIT, combine(datasets::SmallShapes(), framework::dataset::make("DataType", DataType::F16)))
Quantization information.
combine(datasets::SmallShapes(), framework::dataset::make("DataType", DataType::F32)))
@ NHWC
Num samples, height, width, channels.
@ QASYMM8
quantized, asymmetric fixed-point 8-bit number unsigned
Class for specifying the size of an image or rectangle.
As above but this also setups a Zero border on the input tensor of the kernel's bordersize.
TEST_SUITE(QASYMM8_to_F32) FIXTURE_DATA_TEST_CASE(RunSmall
validate(CLAccessor(output_state), expected_output)
Accessor implementation for CLTensor objects.
ARM_COMPUTE_EXPECT(has_error==expected, framework::LogLevel::ERRORS)
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.
std::enable_if< is_container< T >::value, ContainerDataset< T > >::type make(std::string name, T &&values)
Helper function to create a ContainerDataset.
Store the tensor's metadata.
const unsigned int num_groups
Copyright (c) 2017-2024 Arm Limited.
@ F16
16-bit floating-point number
@ F32
32-bit floating-point number
Interface for the im2col reshape kernel.
Im2ColOpValidationFixture< CLTensor, CLAccessor, ClIm2Col, T, true > ClIm2ColFixture
DatasetMode
Possible dataset modes.
DataType
Available data types.