24.04
|
#include "arm_compute/dynamic_fusion/sketch/gpu/GpuWorkloadSketch.h"
#include "arm_compute/dynamic_fusion/sketch/gpu/operators/GpuSub.h"
#include "tests/CL/CLAccessor.h"
#include "tests/datasets/DynamicFusionDataset.h"
#include "tests/datasets/ShapeDatasets.h"
#include "tests/framework/datasets/Datasets.h"
#include "tests/framework/Fixture.h"
#include "tests/framework/Macros.h"
#include "tests/validation/fixtures/dynamic_fusion/gpu/cl/ElementwiseBinaryFixture.h"
#include "tests/validation/Validation.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 | DynamicFusionCLSubFixture = DynamicFusionGpuElementwiseBinaryOneOpValidationFixture< CLTensor, CLAccessor, GpuSub, T > |
template<typename T > | |
using | DynamicFusionCLSubBroadcastFixture = DynamicFusionGpuElementwiseBinaryBroadcastOneOpValidationFixture< CLTensor, CLAccessor, GpuSub, T > |
template<typename T > | |
using | DynamicFusionCLSubTwoOpsFixture = DynamicFusionGpuElementwiseBinaryTwoOpsValidationFixture< CLTensor, CLAccessor, GpuSub, T > |
Functions | |
DATA_TEST_CASE (Validate, framework::DatasetMode::ALL, zip(zip(framework::dataset::make("LhsInfo", { TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::F32), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::U32), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::QASYMM8), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::QASYMM8_SIGNED), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::F32), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::S16), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::S32), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::F32), TensorInfo(TensorShape(32U, 1U, 1U), 1, DataType::F32), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::F32), TensorInfo(TensorShape(15U, 23U, 3U), 1, DataType::F32), TensorInfo(TensorShape(3U, 8U, 9U), 1, DataType::S16), TensorInfo(TensorShape(32U, 13U, 2U, 2), 1, DataType::F32), }), framework::dataset::make("RhsInfo",{ TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::F32), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::U32), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::QASYMM8), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::QASYMM8_SIGNED), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::F16), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::S16), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::S32), TensorInfo(TensorShape(48U, 11U, 2U), 1, DataType::F32), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::F32), TensorInfo(TensorShape(32U, 1U, 1U), 1, DataType::F32), TensorInfo(TensorShape(15U, 1U, 3U), 1, DataType::F32), TensorInfo(TensorShape(3U, 8U, 1U), 1, DataType::S16), TensorInfo(TensorShape(32U, 13U, 2U, 2), 1, DataType::F32), })), framework::dataset::make("Expected", { true, false, false, false, false, false, false, false, true, true, false, false, true })), input1_info, input2_info, expected) | |
FIXTURE_DATA_TEST_CASE (RunSmallOneOp, DynamicFusionCLSubFixture< float >, framework::DatasetMode::PRECOMMIT, combine(combine(combine(framework::dataset::make("ElementwiseOp", {ArithmeticOperation::SUB}), datasets::SmallShapes()), framework::dataset::make("DataType", {DataType::F32})), framework::dataset::make("InPlace", {false}))) | |
FIXTURE_DATA_TEST_CASE (RunLargeOneOp, DynamicFusionCLSubFixture< float >, framework::DatasetMode::NIGHTLY, combine(combine(combine(framework::dataset::make("ElementwiseOp", {ArithmeticOperation::SUB}), datasets::LargeShapes()), framework::dataset::make("DataType", {DataType::F32})), framework::dataset::make("InPlace", {false}))) | |
FIXTURE_DATA_TEST_CASE (RunSmallBroadcastOneOp, DynamicFusionCLSubBroadcastFixture< float >, framework::DatasetMode::PRECOMMIT, combine(combine(combine(framework::dataset::make("ElementwiseOp", {ArithmeticOperation::SUB}), datasets::TemporaryLimitedSmallShapesBroadcast()), framework::dataset::make("DataType", {DataType::F32})), framework::dataset::make("InPlace", {false}))) | |
FIXTURE_DATA_TEST_CASE (RunLargeBroadcastOneOp, DynamicFusionCLSubBroadcastFixture< float >, framework::DatasetMode::NIGHTLY, combine(combine(combine(framework::dataset::make("ElementwiseOp", {ArithmeticOperation::SUB}), datasets::TemporaryLimitedLargeShapesBroadcast()), framework::dataset::make("DataType", {DataType::F32})), framework::dataset::make("InPlace", {false}))) | |
FIXTURE_DATA_TEST_CASE (RunSmallTwoOps, DynamicFusionCLSubTwoOpsFixture< float >, framework::DatasetMode::PRECOMMIT, combine(combine(combine(combine(framework::dataset::make("ElementwiseOp", {ArithmeticOperation::SUB}), datasets::DynamicFusionElementwiseBinaryTwoOpsSmallShapes()), framework::dataset::make("DataType", {DataType::F32})), framework::dataset::make("InPlace", {false})), framework::dataset::make("FuseTwoOps", {true}))) | |
TEST_SUITE_END () FIXTURE_DATA_TEST_CASE(RunSmall = ActivationValidationQuantizedFixture<CLTensor, CLAccessor, CLActivationLayer, T> | |
[CLActivationLayer Test snippet] More... | |
combine (combine(combine(framework::dataset::make("ElementwiseOp", {ArithmeticOperation::SUB}), datasets::SmallShapes()), framework::dataset::make("DataType", {DataType::F16})), framework::dataset::make("InPlace", {false}))) | |
FIXTURE_DATA_TEST_CASE (RunSmallBroadcastOneOp, DynamicFusionCLSubBroadcastFixture< half >, framework::DatasetMode::ALL, combine(combine(combine(framework::dataset::make("ElementwiseOp", {ArithmeticOperation::SUB}), datasets::TemporaryLimitedSmallShapesBroadcast()), framework::dataset::make("DataType", {DataType::F16})), framework::dataset::make("InPlace", {false}))) | |
combine (combine(combine(framework::dataset::make("ElementwiseOp", {ArithmeticOperation::SUB}), datasets::SmallShapes()), framework::dataset::make("DataType", {DataType::S32})), framework::dataset::make("InPlace", {false}))) | |
combine (combine(combine(framework::dataset::make("ElementwiseOp", {ArithmeticOperation::SUB}), datasets::SmallShapes()), framework::dataset::make("DataType", {DataType::S16})), framework::dataset::make("InPlace", {false}))) | |
FIXTURE_DATA_TEST_CASE (RunLarge, DynamicFusionCLSubFixture< int16_t >, framework::DatasetMode::NIGHTLY, combine(combine(combine(framework::dataset::make("ElementwiseOp", {ArithmeticOperation::SUB}), datasets::LargeShapes()), framework::dataset::make("DataType", {DataType::S16})), framework::dataset::make("InPlace", {false}))) | |
combine (combine(combine(framework::dataset::make("ElementwiseOp", {ArithmeticOperation::SUB}), datasets::SmallShapes()), framework::dataset::make("DataType", {DataType::U8})), framework::dataset::make("InPlace", {false}))) | |
Variables | |
DynamicFusionCLSubFixture< half > | |
DynamicFusionCLSubFixture< int32_t > | |
DynamicFusionCLSubFixture< int16_t > | |
DynamicFusionCLSubFixture< uint8_t > | |