31 #include "tests/datasets/BorderModeDataset.h" 32 #include "tests/datasets/ShapeDatasets.h" 37 #include "tests/validation/fixtures/LaplacianReconstructFixture.h" 53 void validate_laplacian_reconstruct(Tensor &target,
const SimpleTensor<T> &reference,
BorderMode border_mode,
size_t num_levels)
55 const unsigned int filter_size = 5;
56 const unsigned int border_size(filter_size / 2);
58 BorderSize border(std::pow(border_size, num_levels));
62 validate(Accessor(target), reference, valid_region);
76 datasets::Medium2DShapes(),
77 datasets::BorderModes()),
78 small_laplacian_reconstruct_levels),
81 validate_laplacian_reconstruct(_target, _reference, _border_mode, _pyramid_levels);
86 datasets::Large2DShapes(),
87 datasets::BorderModes()),
88 large_laplacian_reconstruct_levels),
91 validate_laplacian_reconstruct(_target, _reference, _border_mode, _pyramid_levels);
BorderMode
Methods available to handle borders.
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 execute laplacian reconstruction.
LaplacianReconstructValidationFixture< Tensor, Accessor, NELaplacianReconstruct, NELaplacianPyramid, int16_t, uint8_t, Pyramid > NELaplacianReconstructFixture
const ValidRegion valid_region
Copyright (c) 2017-2021 Arm Limited.
Basic implementation of the pyramid interface.
Basic function to execute laplacian pyramid.
Accessor implementation for Tensor objects.
DatasetMode
Possible dataset modes.
TEST_SUITE_END() FIXTURE_DATA_TEST_CASE(RunSmall
[CLActivationLayer Test snippet]
Basic implementation of the tensor interface.
TEST_SUITE(U8_to_S8) FIXTURE_DATA_TEST_CASE(RunSmall
validate(CLAccessor(output_state), expected_output)
1 channel, 1 S16 per channel
FIXTURE_DATA_TEST_CASE(RunSmall, CLAbsLayerFixture< half >, framework::DatasetMode::PRECOMMIT, combine(datasets::SmallShapes(), framework::dataset::make("DataType", DataType::F16)))
Borders are left undefined.
combine(datasets::SmallShapes(), framework::dataset::make("DataType", DataType::F32)))
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.