30 #include "tests/validation/fixtures/DepthwiseConvolutionLayerFixture.h" 109 constexpr uint32_t vector_size = 8;
110 constexpr
auto depth = vector_size * 2 + 1;
115 const auto kernel_size =
Size2D{ 4, 4 };
119 TensorShape weights_shape{ depth, kernel_size.
x(), kernel_size.y() };
128 dwc.
configure(&
src, &weights, &biases, &dst, pad_stride_info);
140 height_values_precommit),
141 channel_values_precommit),
142 batch_values_precommit),
143 kernel_sz_values_precommit),
144 depth_multiplier_values),
147 padding_valid_values),
157 height_values_nightly),
158 channel_values_nightly),
159 batch_values_nightly),
160 kernel_sz_values_nightly),
161 depth_multiplier_values),
164 padding_valid_values),
DepthwiseConvolutionLayerNativeValidationFixture< Tensor, Accessor, NEDepthwiseConvolutionLayerNative, T > NEDepthwiseConvolutionLayerNativeFixture
1 channel, 1 F32 per channel
ARM_COMPUTE_EXPECT(has_error==expected, framework::LogLevel::ERRORS)
const DataLayout data_layout
Interface for the kernel to run a depthwise convolution native on a tensor.
As above but this also setups a Zero border on the input tensor of the kernel's bordersize.
std::enable_if< is_container< T >::value, ContainerDataset< T > >::type make(std::string name, T &&values)
Helper function to create a ContainerDataset.
SimpleTensor< float > src
Copyright (c) 2017-2021 Arm Limited.
T x() const
Alias to access the size of the first dimension.
Quantization information.
Accessor implementation for Tensor objects.
DatasetMode
Possible dataset modes.
TEST_SUITE_END() FIXTURE_DATA_TEST_CASE(RunSmall
[CLActivationLayer Test snippet]
TEST_SUITE(U8_to_S8) FIXTURE_DATA_TEST_CASE(RunSmall
Padding and stride information class.
validate(CLAccessor(output_state), expected_output)
FIXTURE_DATA_TEST_CASE(RunSmall, CLAbsLayerFixture< half >, framework::DatasetMode::PRECOMMIT, combine(datasets::SmallShapes(), framework::dataset::make("DataType", DataType::F16)))
Class reprensenting a relative tolerance value.
Class for specifying the size of an image or rectangle.
Num samples, height, width, channels.
TEST_CASE(FusedActivation, framework::DatasetMode::ALL)
Validate fused activation expecting the following behaviours:
const auto data_layout_values
Data layout to test.
void configure(const ITensor *input, const ITensor *weights, const ITensor *biases, ITensor *output, const PadStrideInfo &conv_info, unsigned int depth_multiplier=1, const Size2D &dilation=Size2D(1U, 1U))
Initialize the function's source, destination and parameters.
constexpr float abs_tolerance_f32(0.0001f)
F32 Absolute tolerance value for comparing reference's output against implementation's output for flo...
combine(datasets::SmallShapes(), framework::dataset::make("DataType", DataType::F32)))