29 #include "tests/datasets/ChannelShuffleLayerDataset.h" 30 #include "tests/datasets/ShapeDatasets.h" 35 #include "tests/validation/fixtures/ChannelShuffleLayerFixture.h" 46 DATA_TEST_CASE(Configuration, framework::
DatasetMode::ALL,
combine(datasets::SmallRandomChannelShuffleLayerDataset(), framework::dataset::
make("
DataType", {
DataType::S8,
DataType::U8,
DataType::S16,
DataType::U16,
DataType::U32,
DataType::S32,
DataType::F16,
DataType::F32 })),
55 channel_shuffle_func.
configure(&ref_src, &dst, num_groups);
59 validate(dst.info()->valid_region(), valid_region);
void configure(const ICLTensor *input, ICLTensor *output, unsigned int num_groups)
Initialize the function.
1 channel, 1 U8 per channel
half_float::half half
16-bit floating point type
1 channel, 1 F32 per channel
1 channel, 1 U16 per channel
std::enable_if< is_container< T >::value, ContainerDataset< T > >::type make(std::string name, T &&values)
Helper function to create a ContainerDataset.
This file contains all available output stages for GEMMLowp on OpenCL.
1 channel, 1 F16 per channel
#define TEST_SUITE(SUITE_NAME)
ChannelShuffleLayerValidationFixture< CLTensor, CLAccessor, CLChannelShuffleLayer, T > CLChannelShuffleLayerFixture
1 channel, 1 S32 per channel
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.
1 channel, 1 U32 per channel
Accessor implementation for CLTensor objects.
Basic function to run CLChannelShuffleLayerKernel.
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
combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), framework::dataset::make("DataType",{DataType::U8, DataType::S16})), datasets::BorderModes()), framework::dataset::make("filter_size",{5}))
Container for valid region of a window.
DataType
Available data types.
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.
Basic implementation of the OpenCL tensor interface.