30 #include "tests/benchmark/fixtures/ScaleFixture.h" 31 #include "tests/datasets/BorderModeDataset.h" 32 #include "tests/datasets/ShapeDatasets.h" 55 datasets::BorderModes()),
1 channel, 1 U8 per channel
1 channel, 1 F32 per channel
Output values are defined by bilinear interpolation between the pixels.
std::enable_if< is_container< T >::value, ContainerDataset< T > >::type make(std::string name, T &&values)
Helper function to create a ContainerDataset.
Output values are defined to match the source pixel whose center is nearest to the sample position...
Copyright (c) 2017-2021 Arm Limited.
Samples are taken at pixel center.
#define TEST_SUITE(SUITE_NAME)
combine(combine(combine(combine(datasets::Medium4DShapes(), framework::dataset::make("DataType", { DataType::F32, DataType::QASYMM8 })), framework::dataset::make("InterpolationPolicy", { InterpolationPolicy::BILINEAR, InterpolationPolicy::NEAREST_NEIGHBOR })), framework::dataset::make("SamplingPolicy", { SamplingPolicy::CENTER, SamplingPolicy::TOP_LEFT })), framework::dataset::make("DataLayout", { DataLayout::NHWC, DataLayout::NCHW }))
ScaleFixture< Tensor, NEScale, Accessor > NEScaleFixture
1 channel, 1 S16 per channel
Num samples, channels, height, width.
REGISTER_FIXTURE_DATA_TEST_CASE(RunSmall, NEScaleFixture, framework::DatasetMode::PRECOMMIT, combine(combine(combine(combine(combine(datasets::SmallImageShapes(), framework::dataset::make("DataType", { DataType::U8, DataType::S16, DataType::F32 })), framework::dataset::make("DataLayout", { DataLayout::NCHW })), interpolation_types), datasets::BorderModes()), framework::dataset::make("SamplingPolicy", { SamplingPolicy::CENTER })))