32 #include "tests/datasets/ShapeDatasets.h" 39 #include "tests/validation/fixtures/TableLookupFixture.h" 78 table_lookup.configure(&src, &lut, &dst);
82 validate(dst.info()->valid_region(), valid_region);
87 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.
Basic function to run NETableLookupKernel.
Basic implementation of the LUT interface.
This file contains all available output stages for GEMMLowp on OpenCL.
#define TEST_SUITE(SUITE_NAME)
TableLookupValidationFixture< Tensor, Accessor, NETableLookup, LutAccessor< T >, Lut, T > NETableLookupFixture
template SimpleTensor< int16_t > table_lookup(const SimpleTensor< int16_t > &src, const std::map< int16_t, int16_t > &rawlut)
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.
Accessor implementation for Lut objects.
Basic implementation of the tensor interface.
virtual PaddingSize padding() const =0
Padding of tensor.
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)
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.
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.
ITensorInfo * info() const override
Interface to be implemented by the child class to return the tensor's metadata.
Calculate required padding.