30 #include "tests/datasets/BorderModeDataset.h" 31 #include "tests/datasets/ShapeDatasets.h" 36 #include "tests/validation/fixtures/DilateFixture.h" 47 constexpr BorderSize border_size(filter_size / 2);
54 datasets::BorderModes()),
66 dilate.configure(&src, &dst, border_mode);
93 datasets::BorderModes()))
100 datasets::BorderModes()))
void set_accessed_elements(int elements)
Set number of accessed elements.
DilateValidationFixture< Tensor, Accessor, NEDilate, T > NEDilateFixture
1 channel, 1 U8 per channel
PaddingCalculator calculator(shape.x(), 8)
std::enable_if< is_container< T >::value, ContainerDataset< T > >::type make(std::string name, T &&values)
Helper function to create a ContainerDataset.
void set_border_size(int size)
Set border size.
PaddingSize required_padding() const
Compute the required padding.
This file contains all available output stages for GEMMLowp on OpenCL.
void set_access_offset(int offset)
Set offset of the access relative to the current position.
#define TEST_SUITE(SUITE_NAME)
const PaddingSize dst_padding
FIXTURE_DATA_TEST_CASE(RunSmall, CLAbsoluteDifferenceFixture< uint8_t >, framework::DatasetMode::PRECOMMIT, combine(datasets::SmallShapes(), AbsoluteDifferenceU8Dataset))
validate(dst.info() ->valid_region(), dst_valid_region)
Accessor implementation for Tensor objects.
DatasetMode
Possible dataset modes.
BorderSize PaddingSize
Container for 2D padding size.
DATA_TEST_CASE(Configuration, framework::DatasetMode::ALL, combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), AbsoluteDifferenceU8Dataset), shape, data_type0, data_type1, output_data_type)
TEST_SUITE_END() DATA_TEST_CASE(Configuration
const ValidRegion dst_valid_region
__kernel void dilate(__global uchar *src_ptr, uint src_stride_x, uint src_step_x, uint src_stride_y, uint src_step_y, uint src_offset_first_element_in_bytes, __global uchar *dst_ptr, uint dst_stride_x, uint dst_step_x, uint dst_stride_y, uint dst_step_y, uint dst_offset_first_element_in_bytes)
This function dilates an input image.
const PaddingSize src_padding
ARM_COMPUTE_EXPECT(src.info() ->is_resizable(), framework::LogLevel::ERRORS)
Borders are left undefined.
combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), framework::dataset::make("DataType",{DataType::U8, DataType::S16})), datasets::BorderModes()), framework::dataset::make("filter_size",{5}))
JoinDataset< T, U > concat(T &&dataset1, U &&dataset2)
Helper function to create a JoinDataset.
DataType
Available data types.
convolution configure & src
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.
void set_border_mode(BorderMode mode)
Set border mode.