24.02.1
|
#include "arm_compute/core/Types.h"
#include "arm_compute/runtime/CL/CLTensor.h"
#include "arm_compute/runtime/CL/CLTensorAllocator.h"
#include "arm_compute/runtime/CL/functions/CLElementwiseOperations.h"
#include "tests/CL/CLAccessor.h"
#include "tests/PaddingCalculator.h"
#include "tests/datasets/ShapeDatasets.h"
#include "tests/framework/Asserts.h"
#include "tests/framework/Macros.h"
#include "tests/framework/datasets/Datasets.h"
#include "tests/validation/Validation.h"
#include "tests/validation/fixtures/ElementwiseOperationsFixture.h"
Go to the source code of this file.
Namespaces | |
arm_compute | |
Copyright (c) 2017-2024 Arm Limited. | |
arm_compute::test | |
arm_compute::test::validation | |
Typedefs | |
template<typename T > | |
using | CLElementwisePowerFloatFixture = ElementwisePowerValidationFloatFixture< CLTensor, CLAccessor, CLElementwisePower, T > |
template<typename T > | |
using | CLElementwisePowerBroadcastFloatFixture = ElementwisePowerBroadcastValidationFloatFixture< CLTensor, CLAccessor, CLElementwisePower, T > |
Functions | |
DATA_TEST_CASE (Validate, framework::DatasetMode::ALL, zip(zip(zip(framework::dataset::make("Input1Info", { TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::F32), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::F16), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::U8), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::F32), }), framework::dataset::make("Input2Info",{ TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::F32), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::F16), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::S16), TensorInfo(TensorShape(48U, 11U, 2U), 1, DataType::F32), })), framework::dataset::make("OutputInfo",{ TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::F32), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::F16), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::U8), TensorInfo(TensorShape(48U, 11U, 2U), 1, DataType::F32), })), framework::dataset::make("Expected", { true, true, false, false})), input1_info, input2_info, output_info, expected) | |
FIXTURE_DATA_TEST_CASE (RunSmall, CLElementwisePowerFloatFixture< half >, framework::DatasetMode::ALL, combine(combine(combine(datasets::SmallShapes(), ElementwisePowerFP16Dataset), EmptyActivationFunctionsDataset), OutOfPlaceDataSet)) | |
FIXTURE_DATA_TEST_CASE (RunWithActivation, CLElementwisePowerFloatFixture< half >, framework::DatasetMode::ALL, combine(combine(combine(datasets::TinyShapes(), ElementwisePowerFP16Dataset), ActivationFunctionsDataset), OutOfPlaceDataSet)) | |
FIXTURE_DATA_TEST_CASE (RunSmallBroadcast, CLElementwisePowerBroadcastFloatFixture< half >, framework::DatasetMode::ALL, combine(combine(combine(datasets::SmallShapesBroadcast(), ElementwisePowerFP16Dataset), EmptyActivationFunctionsDataset), OutOfPlaceDataSet)) | |
FIXTURE_DATA_TEST_CASE (RunWithActivationBroadcast, CLElementwisePowerBroadcastFloatFixture< half >, framework::DatasetMode::ALL, combine(combine(combine(datasets::TinyShapesBroadcast(), ElementwisePowerFP16Dataset), ActivationFunctionsDataset), OutOfPlaceDataSet)) | |
TEST_SUITE_END () FIXTURE_DATA_TEST_CASE(RunSmall = ActivationValidationQuantizedFixture<CLTensor, CLAccessor, CLActivationLayer, T> | |
[CLActivationLayer Test snippet] More... | |
combine (combine(combine(datasets::SmallShapes(), ElementwisePowerFP32Dataset), EmptyActivationFunctionsDataset), OutOfPlaceDataSet)) | |
FIXTURE_DATA_TEST_CASE (RunWithActivation, CLElementwisePowerFloatFixture< float >, framework::DatasetMode::ALL, combine(combine(combine(datasets::TinyShapes(), ElementwisePowerFP32Dataset), ActivationFunctionsDataset), OutOfPlaceDataSet)) | |
FIXTURE_DATA_TEST_CASE (RunSmallBroadcast, CLElementwisePowerBroadcastFloatFixture< float >, framework::DatasetMode::ALL, combine(combine(combine(datasets::SmallShapesBroadcast(), ElementwisePowerFP32Dataset), EmptyActivationFunctionsDataset), OutOfPlaceDataSet)) | |
FIXTURE_DATA_TEST_CASE (RunWithActivationBroadcast, CLElementwisePowerBroadcastFloatFixture< float >, framework::DatasetMode::ALL, combine(combine(combine(datasets::TinyShapesBroadcast(), ElementwisePowerFP32Dataset), ActivationFunctionsDataset), OutOfPlaceDataSet)) | |
Variables | |
CLElementwisePowerFloatFixture< float > | |