32 #include "tests/datasets/BorderModeDataset.h" 33 #include "tests/datasets/ShapeDatasets.h" 38 #include "tests/validation/fixtures/SobelFixture.h" 59 validate(CLAccessor(_target.first), _reference.first, valid_region_x);
129 validate(CLAccessor(_target.first), _reference.first, valid_region_x);
197 validate(CLAccessor(_target.first), _reference.first, valid_region_x);
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.
SobelValidationFixture< CLTensor, CLAccessor, CLSobel3x3, uint8_t, int16_t > CLSobel3x3Fixture
Copyright (c) 2017-2021 Arm Limited.
SobelValidationFixture< CLTensor, CLAccessor, CLSobel7x7, uint8_t, int32_t > CLSobel7x7Fixture
Basic function to execute sobel 5x5 filter.
DatasetMode
Possible dataset modes.
TEST_SUITE_END() FIXTURE_DATA_TEST_CASE(RunSmall
[CLActivationLayer Test snippet]
Format
Image colour formats.
Accessor implementation for CLTensor objects.
SobelValidationFixture< CLTensor, CLAccessor, CLSobel5x5, uint8_t, int16_t > CLSobel5x5Fixture
TEST_SUITE(U8_to_S8) FIXTURE_DATA_TEST_CASE(RunSmall
validate(CLAccessor(output_state), expected_output)
FIXTURE_DATA_TEST_CASE(RunSmall, CLAbsLayerFixture< half >, framework::DatasetMode::PRECOMMIT, combine(datasets::SmallShapes(), framework::dataset::make("DataType", DataType::F16)))
x and y gradient dimension
Borders are left undefined.
Container for valid region of a window.
Basic function to execute sobel 7x7 filter.
GradientDimension
Gradient dimension type.
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.
Basic function to execute sobel 3x3 filter.
Basic implementation of the OpenCL tensor interface.