79 table_lookup.configure(&src, &cllut, &dst);
83 validate(dst.info()->valid_region(), valid_region);
#define ARM_COMPUTE_ERROR(...)
Print the given message then throw an std::runtime_error.
Data set containing large tensor shapes.
ValidRegion shape_to_valid_region(TensorShape shape, bool border_undefined=false, BorderSize border_size=BorderSize(0))
Create a valid region based on tensor shape, border mode and border size.
Container for 2D border size.
Data set containing small tensor shapes.
FIXTURE_DATA_TEST_CASE(RunSmall, CLActivationLayerFixture< half >, framework::DatasetMode::PRECOMMIT, combine(combine(datasets::SmallShapes(), ActivationDataset), framework::dataset::make("DataType", DataType::F16)))
combine(concat(datasets::Small2DShapes(), datasets::Large2DShapes()), framework::dataset::make("DataType", DataType::S16))
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.
template SimpleTensor< int16_t > table_lookup(const SimpleTensor< int16_t > &src, const std::map< int16_t, int16_t > &rawlut)
Accessor implementation for CLLut objects.
DatasetMode
Possible dataset modes.
Accessor implementation for CLTensor objects.
1 channel, 1 U8 per channel
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.
void validate(const arm_compute::ValidRegion ®ion, const arm_compute::ValidRegion &reference)
Validate valid regions.
#define TEST_SUITE(SUITE_NAME)
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.
DataType
Available data types.
DATA_TEST_CASE(Configuration, framework::DatasetMode::ALL, combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), CNNDataTypes), framework::dataset::make("InPlace",{false, true})), shape, data_type, in_place)
Basic implementation of the OpenCL tensor interface.