27 #include "tests/datasets/ShapeDatasets.h" 32 #include "tests/validation/fixtures/PhaseFixture.h" 42 constexpr AbsoluteTolerance<uint8_t> tolerance_value(1);
61 phase.configure(&src1, &src2, &dst);
65 validate(dst.info()->valid_region(), valid_region);
68 const PaddingSize padding = PaddingCalculator(shape.x(), 16).required_padding();
69 validate(src1.info()->padding(), padding);
70 validate(src2.info()->padding(), padding);
71 validate(dst.info()->padding(), padding);
PhaseType
Phase calculation type.
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.
This file contains all available output stages for GEMMLowp on OpenCL.
#define TEST_SUITE(SUITE_NAME)
template SimpleTensor< uint8_t > phase(const SimpleTensor< int32_t > &gx, const SimpleTensor< int32_t > &gy, PhaseType phase_type)
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.
Format
Image colour formats.
BorderSize PaddingSize
Container for 2D padding size.
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
PhaseValidationFixture< Tensor, Accessor, NEPhase, T > NEPhaseFixture
ARM_COMPUTE_EXPECT(src.info() ->is_resizable(), framework::LogLevel::ERRORS)
combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), framework::dataset::make("DataType",{DataType::U8, DataType::S16})), datasets::BorderModes()), framework::dataset::make("filter_size",{5}))
JoinDataset< T, U > concat(T &&dataset1, U &&dataset2)
Helper function to create a JoinDataset.
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.
void validate_wrap(const IAccessor &tensor, const SimpleTensor< T > &reference, U tolerance_value, float tolerance_number)