24.02.1
|
Go to the documentation of this file.
30 #include "tests/benchmark/fixtures/ScaleFixture.h"
31 #include "tests/datasets/BorderModeDataset.h"
32 #include "tests/datasets/ShapeDatasets.h"
55 datasets::BorderModes()),
@ NCHW
Num samples, channels, height, width.
ScaleFixture< Tensor, NEScale, Accessor > NEScaleFixture
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 }))
@ U8
unsigned 8-bit number
@ S16
signed 16-bit number
std::enable_if< is_container< T >::value, ContainerDataset< T > >::type make(std::string name, T &&values)
Helper function to create a ContainerDataset.
@ BILINEAR
Output values are defined by bilinear interpolation between the pixels.
Copyright (c) 2017-2024 Arm Limited.
#define TEST_SUITE(SUITE_NAME)
@ NEAREST_NEIGHBOR
Output values are defined to match the source pixel whose center is nearest to the sample position.
@ CENTER
Samples are taken at pixel center.
@ F32
32-bit floating-point number
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 })))