52 std::mt19937 gen(
library->seed());
53 std::uniform_int_distribution<uint8_t> int_dist(0, 255);
54 const uint8_t constant_border_value = int_dist(gen);
71 scharr.configure(&src, &dst_x, &dst_y, border_mode, constant_border_value);
void set_accessed_elements(int elements)
Set number of accessed elements.
Data set containing large 2D tensor shapes.
Container for 2D border size.
1 channel, 1 U8 per channel
PaddingCalculator calculator(shape.x(), 8)
std::pair< SimpleTensor< T >, SimpleTensor< T > > scharr(const SimpleTensor< U > &src, int filter_size, BorderMode border_mode, uint8_t constant_border_value, GradientDimension gradient_dimension)
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
virtual bool is_resizable() const =0
Flag indicating whether the size of the tensor can be changed.
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.
std::unique_ptr< AssetsLibrary > library
Format
Image colour formats.
Basic implementation of the tensor interface.
virtual PaddingSize padding() const =0
Padding of tensor.
1 channel, 1 S16 per channel
DataType data_type_from_format(Format format)
Return the data type used by a given single-planar pixel format.
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
Data set containing small 2D tensor shapes.
const ValidRegion dst_valid_region
const PaddingSize src_padding
ARM_COMPUTE_EXPECT(src.info() ->is_resizable(), framework::LogLevel::ERRORS)
Borders are left undefined.
Basic function to execute scharr 3x3 filter.
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.
virtual ITensorInfo & set_format(Format format)=0
Set the format of an already initialized tensor.
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.
ITensorInfo * info() const override
Interface to be implemented by the child class to return the tensor's metadata.
Calculate required padding.
void set_border_mode(BorderMode mode)
Set border mode.