33 #include "tests/datasets/ShapeDatasets.h" 40 #include "tests/validation/fixtures/TableLookupFixture.h" 79 table_lookup.configure(&src, &cllut, &dst);
83 validate(dst.info()->valid_region(), valid_region);
88 validate(dst.info()->padding(), padding);
#define ARM_COMPUTE_ERROR(...)
Print the given message then throw an std::runtime_error.
Container for 2D border size.
1 channel, 1 U8 per channel
std::enable_if< is_container< T >::value, ContainerDataset< T > >::type make(std::string name, T &&values)
Helper function to create a ContainerDataset.
PaddingSize padding() const override
Padding of tensor.
TensorInfo * info() const override
Interface to be implemented by the child class to return the tensor's metadata.
This file contains all available output stages for GEMMLowp on OpenCL.
TableLookupValidationFixture< CLTensor, CLAccessor, CLTableLookup, CLLutAccessor< T >, CLLut, T > CLTableLookupFixture
#define TEST_SUITE(SUITE_NAME)
template SimpleTensor< int16_t > table_lookup(const SimpleTensor< int16_t > &src, const std::map< int16_t, int16_t > &rawlut)
Accessor implementation for CLLut objects.
FIXTURE_DATA_TEST_CASE(RunSmall, CLAbsoluteDifferenceFixture< uint8_t >, framework::DatasetMode::PRECOMMIT, combine(datasets::SmallShapes(), AbsoluteDifferenceU8Dataset))
validate(dst.info() ->valid_region(), dst_valid_region)
DatasetMode
Possible dataset modes.
Accessor implementation for CLTensor objects.
1 channel, 1 S16 per channel
DATA_TEST_CASE(Configuration, framework::DatasetMode::ALL, combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), AbsoluteDifferenceU8Dataset), shape, data_type0, data_type1, output_data_type)
Basic function to run CLTableLookupKernel.
TEST_SUITE_END() DATA_TEST_CASE(Configuration
void fill_lookuptable(T &&table)
Helper function to fill the Lut random by a ILutAccessor.
combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), framework::dataset::make("DataType",{DataType::U8, DataType::S16})), datasets::BorderModes()), framework::dataset::make("filter_size",{5}))
fixed_point< T > max(fixed_point< T > x, fixed_point< T > y)
JoinDataset< T, U > concat(T &&dataset1, U &&dataset2)
Helper function to create a JoinDataset.
Basic implementation of the OpenCL lut interface.
Container for valid region of a window.
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.
Calculate required padding.
Basic implementation of the OpenCL tensor interface.