27 #include "tests/datasets/ShapeDatasets.h" 32 #include "tests/validation/fixtures/MagnitudeFixture.h" 48 #ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC 50 AbsoluteTolerance<half_float::half> tolerance(
MagnitudeType magnitude_type)
74 magnitude.configure(&src1, &src2, &dst);
78 validate(dst.info()->valid_region(), valid_region);
83 validate(src2.info()->padding(), padding);
84 validate(dst.info()->padding(), padding);
96 validate(
Accessor(_target), _reference, tolerance<int16_t>(_magnitude_type));
104 validate(
Accessor(_target), _reference, tolerance<int16_t>(_magnitude_type));
108 #ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC 116 validate(
Accessor(_target), _reference, tolerance<half_float::half>(_magnitude_type));
Container for 2D border size.
half_float::half half
16-bit floating point type
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)
virtual bool is_resizable() const =0
Flag indicating whether the size of the tensor can be changed.
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.
template SimpleTensor< half_float::half > magnitude(const SimpleTensor< half_float::half > &gx, const SimpleTensor< half_float::half > &gy, MagnitudeType magnitude_type)
Format
Image colour formats.
Basic implementation of the tensor interface.
virtual PaddingSize padding() const =0
Padding of tensor.
Basic function to run NEMagnitudePhaseKernel.
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
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.
Container for valid region of a window.
MagnitudeType
Magnitude calculation type.
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.
ITensorInfo * info() const override
Interface to be implemented by the child class to return the tensor's metadata.
MagnitudeValidationFixture< Tensor, Accessor, NEMagnitude, T > NEMagnitudeFixture
Calculate required padding.