30 #include "tests/datasets/ShapeDatasets.h" 35 #include "tests/validation/fixtures/SoftmaxLayerFixture.h" 46 RelativeTolerance<half> tolerance_f16(
half(0.2));
47 RelativeTolerance<float> tolerance_f32(0.001f);
66 GCTensor
src = create_tensor<GCTensor>(
shape,
data_type, 1, fixed_point_position);
67 GCTensor
dst = create_tensor<GCTensor>(
shape,
data_type, 1, fixed_point_position);
73 GCSoftmaxLayer smx_layer;
74 smx_layer.configure(&src, &dst);
78 validate(src.info()->valid_region(), valid_region);
79 validate(dst.info()->valid_region(), valid_region);
82 const PaddingSize padding = PaddingCalculator(shape.x(), 8).required_padding();
83 validate(src.info()->padding(), padding);
84 validate(dst.info()->padding(), padding);
94 framework::dataset::
make("Beta", 1.0f)))
111 framework::dataset::
make("Beta", 1.0f)))
Accessor implementation for GCTensor objects.
half_float::half half
16-bit floating point type
1 channel, 1 F32 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.
SoftmaxValidationFixture< GCTensor, GCAccessor, GCSoftmaxLayer, T > GCSoftmaxLayerFixture
1 channel, 1 F16 per channel
#define TEST_SUITE(SUITE_NAME)
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.
bool is_data_type_fixed_point(DataType dt)
Check if a given data type is of fixed point type.
BorderSize PaddingSize
Container for 2D padding size.
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.
DataType
Available data types.
convolution configure & src
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.