24.02.1
|
Go to the documentation of this file.
31 #include "tests/benchmark/fixtures/ScaleFixture.h"
32 #include "tests/datasets/BorderModeDataset.h"
33 #include "tests/datasets/SamplingPolicyDataset.h"
34 #include "tests/datasets/ShapeDatasets.h"
57 datasets::BorderModes()),
58 datasets::SamplingPolicies()));
@ NCHW
Num samples, channels, height, width.
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< CLTensor, CLScale, CLAccessor > CLScaleFixture
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.
@ F16
16-bit floating-point number
#define TEST_SUITE(SUITE_NAME)
@ NEAREST_NEIGHBOR
Output values are defined to match the source pixel whose center is nearest to the sample position.
@ 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 })))
DatasetMode
Possible dataset modes.
DataType
Available data types.