Compute Library
 22.11
PixelWiseMultiplication.cpp File Reference
#include "arm_compute/core/Rounding.h"
#include "arm_compute/runtime/NEON/functions/NEPixelWiseMultiplication.h"
#include "tests/NEON/Accessor.h"
#include "tests/PaddingCalculator.h"
#include "tests/datasets/ConvertPolicyDataset.h"
#include "tests/datasets/ShapeDatasets.h"
#include "tests/framework/Macros.h"
#include "tests/validation/Validation.h"
#include "tests/validation/fixtures/PixelWiseMultiplicationFixture.h"

Go to the source code of this file.

Namespaces

 arm_compute
 Copyright (c) 2017-2022 Arm Limited.
 
 arm_compute::test
 
 arm_compute::test::validation
 

Macros

#define DEFAULT_VALIDATE   validate(Accessor(_target), _reference);
 
#define VALIDATE(TYPE, TOLERANCE)   validate(Accessor(_target), _reference, AbsoluteTolerance<TYPE>(TOLERANCE), 0.f);
 
#define WRAP_VALIDATE(TYPE, TOLERANCE)   validate_wrap(Accessor(_target), _reference, AbsoluteTolerance<TYPE>(TOLERANCE), 0.f);
 
#define PIXEL_WISE_MULTIPLICATION_FIXTURE_DATA_TEST_CASE(TEST_NAME, FIXTURE, MODE, SHAPES, DT1, DT2, DT3, SCALE, RP, INPLACE_DATASET, VALIDATE)
 

Typedefs

using NEPixelWiseMultiplicationQASYMM8Fixture = PixelWiseMultiplicationValidationQuantizedFixture< Tensor, Accessor, NEPixelWiseMultiplication, uint8_t, uint8_t >
 
using NEPixelWiseMultiplicationQASYMM8SignedFixture = PixelWiseMultiplicationValidationQuantizedFixture< Tensor, Accessor, NEPixelWiseMultiplication, int8_t, int8_t >
 
using NEPixelWiseMultiplicationQSYMM16Fixture = PixelWiseMultiplicationValidationQuantizedFixture< Tensor, Accessor, NEPixelWiseMultiplication, int16_t, int16_t >
 
using NEPixelWiseMultiplicationQSYMM16ToS32Fixture = PixelWiseMultiplicationValidationQuantizedFixture< Tensor, Accessor, NEPixelWiseMultiplication, int16_t, int16_t, int32_t >
 
template<typename T >
using NEPixelWiseMultiplicationToU8Fixture = PixelWiseMultiplicationValidationFixture< Tensor, Accessor, NEPixelWiseMultiplication, T, uint8_t >
 
template<typename T >
using NEPixelWiseMultiplicationToS16Fixture = PixelWiseMultiplicationValidationFixture< Tensor, Accessor, NEPixelWiseMultiplication, T, int16_t >
 
template<typename T >
using NEPixelWiseMultiplicationToS32Fixture = PixelWiseMultiplicationValidationFixture< Tensor, Accessor, NEPixelWiseMultiplication, T, int32_t >
 
template<typename T >
using NEPixelWiseMultiplicationToF16Fixture = PixelWiseMultiplicationValidationFixture< Tensor, Accessor, NEPixelWiseMultiplication, T, half_float::half >
 
template<typename T >
using NEPixelWiseMultiplicationToF32Fixture = PixelWiseMultiplicationValidationFixture< Tensor, Accessor, NEPixelWiseMultiplication, T, float >
 
using NEPixelWiseMultiplicationU8U8ToS16Fixture = PixelWiseMultiplicationValidationFixture< Tensor, Accessor, NEPixelWiseMultiplication, uint8_t, uint8_t, int16_t >
 
template<typename T >
using NEPixelWiseMultiplicationBroadcastFixture = PixelWiseMultiplicationBroadcastValidationFixture< Tensor, Accessor, NEPixelWiseMultiplication, T, T >
 
using NEPixelWiseMultiplicationBroadcastQASYMM8Fixture = PixelWiseMultiplicationBroadcastValidationQuantizedFixture< Tensor, Accessor, NEPixelWiseMultiplication, uint8_t, uint8_t >
 
using NEPixelWiseMultiplicationBroadcastQASYMM8SignedFixture = PixelWiseMultiplicationBroadcastValidationQuantizedFixture< Tensor, Accessor, NEPixelWiseMultiplication, int8_t, int8_t >
 

Functions

 DATA_TEST_CASE (Validate, framework::DatasetMode::ALL, zip(zip(zip(zip(zip(framework::dataset::make("Input1Info", { TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::U8), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::U8), TensorInfo(TensorShape(27U, 13U, 2U), 1, DataType::U8), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::U8), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::U8), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::F32), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::F32), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::QASYMM8), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::QASYMM8_SIGNED), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::QASYMM8_SIGNED), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::QASYMM8), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::QASYMM8), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::QASYMM8_SIGNED), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::S32), }), framework::dataset::make("Input2Info",{ TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::U8), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::U8), TensorInfo(TensorShape(27U, 13U, 2U), 1, DataType::U8), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::U8), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::S16), TensorInfo(TensorShape(48U, 11U, 2U), 1, DataType::F32), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::U8), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::U8), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::QASYMM8_SIGNED), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::QASYMM8), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::QASYMM8_SIGNED), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::QASYMM8), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::QASYMM8_SIGNED), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::S32), })), framework::dataset::make("OutputInfo",{ TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::S16), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::U8), TensorInfo(TensorShape(27U, 13U, 2U), 1, DataType::U8), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::U8), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::U8), TensorInfo(TensorShape(48U, 11U, 2U), 1, DataType::F32), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::F32), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::U8), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::QASYMM8_SIGNED), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::QASYMM8_SIGNED), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::QASYMM8_SIGNED), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::QASYMM8), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::QASYMM8_SIGNED), TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::S32), })), framework::dataset::make("Scale",{ scale_unity, scale_unity, scale_unity, -1.f, scale_unity, scale_unity, scale_unity, scale_unity, scale_unity, scale_unity, scale_unity, scale_unity, scale_unity, scale_255})), framework::dataset::make("OverflowPolicy",{ ConvertPolicy::WRAP, ConvertPolicy::WRAP, ConvertPolicy::WRAP, ConvertPolicy::WRAP, ConvertPolicy::WRAP, ConvertPolicy::WRAP, ConvertPolicy::WRAP, ConvertPolicy::WRAP, ConvertPolicy::SATURATE, ConvertPolicy::WRAP, ConvertPolicy::WRAP, ConvertPolicy::SATURATE, ConvertPolicy::WRAP, ConvertPolicy::SATURATE, })), framework::dataset::make("Expected", { true, true, true, false, false, false, false, false, true, false, false, true, false, false})), input1_info, input2_info, output_info, scale, policy, expected)
 
 TEST_CASE (SingleTensor, framework::DatasetMode::ALL)
 
 TEST_CASE (ValidBroadCast, framework::DatasetMode::ALL)
 
 TEST_CASE (InvalidBroadcastOutput, framework::DatasetMode::ALL)
 
 TEST_CASE (InvalidBroadcastBoth, framework::DatasetMode::ALL)
 
 TEST_SUITE_END () FIXTURE_DATA_TEST_CASE(RunSmall = ActivationValidationQuantizedFixture<CLTensor, CLAccessor, CLActivationLayer, T>
 [CLActivationLayer Test snippet] More...
 
 combine (combine(combine(combine(combine(combine(combine(datasets::SmallShapes(), framework::dataset::make("DataTypeIn1", DataType::QASYMM8_SIGNED)), framework::dataset::make("DataTypeIn2", DataType::QASYMM8_SIGNED)), framework::dataset::make("DataTypeOut", DataType::QASYMM8_SIGNED)), framework::dataset::make("Scale", { scale_unity })), PixelWiseMultiplicationPolicySTZDataset), PixelWiseMultiplicationQASYMM8QuantDataset), OutOfPlaceDataSet))
 
 FIXTURE_DATA_TEST_CASE (RunSmallInPlace, NEPixelWiseMultiplicationQASYMM8SignedFixture, framework::DatasetMode::ALL, combine(combine(combine(combine(combine(combine(combine(datasets::SmallShapes(), framework::dataset::make("DataTypeIn1", DataType::QASYMM8_SIGNED)), framework::dataset::make("DataTypeIn2", DataType::QASYMM8_SIGNED)), framework::dataset::make("DataTypeOut", DataType::QASYMM8_SIGNED)), framework::dataset::make("Scale", { scale_unity })), PixelWiseMultiplicationPolicySTZDataset), PixelWiseMultiplicationQASYMM8QuantInPlaceDataset), InPlaceDataSet))
 
 combine (combine(combine(combine(combine(combine(combine(datasets::SmallShapes(), framework::dataset::make("DataTypeIn1", DataType::QASYMM8)), framework::dataset::make("DataTypeIn2", DataType::QASYMM8)), framework::dataset::make("DataTypeOut", DataType::QASYMM8)), framework::dataset::make("Scale", { scale_255 })), PixelWiseMultiplicationPolicySTNUDataset), PixelWiseMultiplicationQASYMM8QuantDataset), OutOfPlaceDataSet))
 
 combine (combine(combine(combine(combine(combine(combine(datasets::SmallShapes(), framework::dataset::make("DataTypeIn1", DataType::QASYMM8)), framework::dataset::make("DataTypeIn2", DataType::QASYMM8)), framework::dataset::make("DataTypeOut", DataType::QASYMM8)), framework::dataset::make("Scale", { scale_unity })), PixelWiseMultiplicationPolicySTZDataset), PixelWiseMultiplicationQASYMM8QuantDataset), OutOfPlaceDataSet))
 
 combine (combine(combine(combine(combine(combine(combine(datasets::SmallShapes(), framework::dataset::make("DataTypeIn1", DataType::QASYMM8)), framework::dataset::make("DataTypeIn2", DataType::QASYMM8)), framework::dataset::make("DataTypeOut", DataType::QASYMM8)), framework::dataset::make("Scale", { scale_other })), PixelWiseMultiplicationPolicySTZDataset), PixelWiseMultiplicationQASYMM8QuantDataset), OutOfPlaceDataSet))
 
 combine (combine(combine(combine(combine(combine(combine(datasets::SmallShapesBroadcast(), framework::dataset::make("DataTypeIn1", DataType::QASYMM8)), framework::dataset::make("DataTypeIn2", DataType::QASYMM8)), framework::dataset::make("DataTypeOut", DataType::QASYMM8)), framework::dataset::make("Scale", { scale_other })), PixelWiseMultiplicationPolicySTZDataset), PixelWiseMultiplicationQASYMM8QuantDataset), OutOfPlaceDataSet))
 
 FIXTURE_DATA_TEST_CASE (RunTinyInPlace, NEPixelWiseMultiplicationBroadcastQASYMM8Fixture, framework::DatasetMode::ALL, combine(combine(combine(combine(combine(combine(combine(datasets::TinyShapesBroadcastInplace(), framework::dataset::make("DataTypeIn1", DataType::QASYMM8)), framework::dataset::make("DataTypeIn2", DataType::QASYMM8)), framework::dataset::make("DataTypeOut", DataType::QASYMM8)), framework::dataset::make("Scale", { scale_other })), PixelWiseMultiplicationPolicySTZDataset), PixelWiseMultiplicationQASYMM8QuantInPlaceDataset), InPlaceDataSet))
 
 combine (combine(combine(combine(combine(combine(combine(datasets::SmallShapes(), framework::dataset::make("DataTypeIn1", DataType::QSYMM16)), framework::dataset::make("DataTypeIn2", DataType::QSYMM16)), framework::dataset::make("DataTypeOut", DataType::QSYMM16)), framework::dataset::make("Scale", { scale_255 })), PixelWiseMultiplicationPolicySTNUDataset), PixelWiseMultiplicationQSYMM16QuantDataset), OutOfPlaceDataSet))
 
 combine (combine(combine(combine(combine(combine(combine(datasets::SmallShapes(), framework::dataset::make("DataTypeIn1", DataType::QSYMM16)), framework::dataset::make("DataTypeIn2", DataType::QSYMM16)), framework::dataset::make("DataTypeOut", DataType::QSYMM16)), framework::dataset::make("Scale", { scale_unity })), PixelWiseMultiplicationPolicySTZDataset), PixelWiseMultiplicationQSYMM16QuantDataset), OutOfPlaceDataSet))
 
 combine (combine(combine(combine(combine(combine(combine(datasets::SmallShapes(), framework::dataset::make("DataTypeIn1", DataType::QSYMM16)), framework::dataset::make("DataTypeIn2", DataType::QSYMM16)), framework::dataset::make("DataTypeOut", DataType::QSYMM16)), framework::dataset::make("Scale", { scale_other })), PixelWiseMultiplicationPolicySTZDataset), PixelWiseMultiplicationQSYMM16QuantDataset), OutOfPlaceDataSet))
 
 combine (combine(combine(combine(combine(combine(combine(datasets::SmallShapes(), framework::dataset::make("DataTypeIn1", DataType::QSYMM16)), framework::dataset::make("DataTypeIn2", DataType::QSYMM16)), framework::dataset::make("DataTypeOut", DataType::S32)), framework::dataset::make("Scale", { scale_unity })), PixelWiseMultiplicationPolicySTZDataset), PixelWiseMultiplicationQSYMM16QuantDataset), OutOfPlaceDataSet))
 
 combine (combine(combine(combine(combine(combine(combine(datasets::SmallShapes(), framework::dataset::make("DataTypeIn1", DataType::U8)), framework::dataset::make("DataTypeIn2", DataType::U8)), framework::dataset::make("DataTypeOut", DataType::S16)), framework::dataset::make("Scale", { scale_255 })), datasets::ConvertPolicies()), framework::dataset::make("RoundingPolicy", RoundingPolicy::TO_NEAREST_UP)), OutOfPlaceDataSet))
 
 FIXTURE_DATA_TEST_CASE (RunSmall1, NEPixelWiseMultiplicationU8U8ToS16Fixture, framework::DatasetMode::PRECOMMIT, combine(combine(combine(combine(combine(combine(combine(datasets::SmallShapes(), framework::dataset::make("DataTypeIn1", DataType::U8)), framework::dataset::make("DataTypeIn2", DataType::U8)), framework::dataset::make("DataTypeOut", DataType::S16)), framework::dataset::make("Scale", { scale_other })), datasets::ConvertPolicies()), framework::dataset::make("RoundingPolicy", RoundingPolicy::TO_ZERO)), framework::dataset::make("InPlace", { false })))
 
 combine (combine(combine(combine(combine(combine(combine(datasets::SmallShapes(), framework::dataset::make("DataType1", DataType::U8)), framework::dataset::make("DataType2", DataType::U8)), framework::dataset::make("DataType3", DataType::U8)), framework::dataset::make("Scale", std::move(scale_255))), datasets::ConvertPolicies()), framework::dataset::make("RoundingPolicy", RoundingPolicy::TO_NEAREST_UP)),(InPlaceDataSet)))
 
 combine (combine(combine(combine(combine(combine(combine(datasets::SmallShapes(), framework::dataset::make("DataType1", DataType::U8)), framework::dataset::make("DataType2", DataType::U8)), framework::dataset::make("DataType3", DataType::U8)), framework::dataset::make("Scale", std::move(scale_unity))), datasets::ConvertPolicies()), framework::dataset::make("RoundingPolicy", RoundingPolicy::TO_ZERO)),(InPlaceDataSet)))
 
 combine (combine(combine(combine(combine(combine(combine(datasets::SmallShapes(), framework::dataset::make("DataType1", DataType::U8)), framework::dataset::make("DataType2", DataType::U8)), framework::dataset::make("DataType3", DataType::U8)), framework::dataset::make("Scale", std::move(scale_other))), datasets::ConvertPolicies()), framework::dataset::make("RoundingPolicy", RoundingPolicy::TO_ZERO)),(InPlaceDataSet)))
 
 combine (combine(combine(combine(combine(combine(combine(datasets::SmallShapes(), framework::dataset::make("DataType1", DataType::U8)), framework::dataset::make("DataType2", DataType::S16)), framework::dataset::make("DataType3", DataType::S16)), framework::dataset::make("Scale", std::move(scale_255))), datasets::ConvertPolicies()), framework::dataset::make("RoundingPolicy", RoundingPolicy::TO_NEAREST_UP)),(OutOfPlaceDataSet)))
 
 combine (combine(combine(combine(combine(combine(combine(datasets::SmallShapes(), framework::dataset::make("DataType1", DataType::U8)), framework::dataset::make("DataType2", DataType::S16)), framework::dataset::make("DataType3", DataType::S16)), framework::dataset::make("Scale", std::move(scale_unity))), datasets::ConvertPolicies()), framework::dataset::make("RoundingPolicy", RoundingPolicy::TO_ZERO)),(OutOfPlaceDataSet)))
 
 combine (combine(combine(combine(combine(combine(combine(datasets::SmallShapes(), framework::dataset::make("DataType1", DataType::U8)), framework::dataset::make("DataType2", DataType::S16)), framework::dataset::make("DataType3", DataType::S16)), framework::dataset::make("Scale", std::move(scale_other))), datasets::ConvertPolicies()), framework::dataset::make("RoundingPolicy", RoundingPolicy::TO_ZERO)),(OutOfPlaceDataSet)))
 
 combine (combine(combine(combine(combine(combine(combine(datasets::SmallShapes(), framework::dataset::make("DataType1", DataType::S16)), framework::dataset::make("DataType2", DataType::S16)), framework::dataset::make("DataType3", DataType::S16)), framework::dataset::make("Scale", std::move(scale_255))), datasets::ConvertPolicies()), framework::dataset::make("RoundingPolicy", RoundingPolicy::TO_NEAREST_UP)),(InPlaceDataSet)))
 
 combine (combine(combine(combine(combine(combine(combine(datasets::SmallShapes(), framework::dataset::make("DataType1", DataType::S16)), framework::dataset::make("DataType2", DataType::S16)), framework::dataset::make("DataType3", DataType::S16)), framework::dataset::make("Scale", std::move(scale_unity))), datasets::ConvertPolicies()), framework::dataset::make("RoundingPolicy", RoundingPolicy::TO_ZERO)),(InPlaceDataSet)))
 
 combine (combine(combine(combine(combine(combine(combine(datasets::SmallShapes(), framework::dataset::make("DataType1", DataType::S16)), framework::dataset::make("DataType2", DataType::S16)), framework::dataset::make("DataType3", DataType::S16)), framework::dataset::make("Scale", std::move(scale_other))), datasets::ConvertPolicies()), framework::dataset::make("RoundingPolicy", RoundingPolicy::TO_ZERO)),(InPlaceDataSet)))
 
 combine (combine(combine(combine(combine(combine(combine(datasets::SmallShapes(), framework::dataset::make("DataType1", DataType::S32)), framework::dataset::make("DataType2", DataType::S32)), framework::dataset::make("DataType3", DataType::S32)), framework::dataset::make("Scale", std::move(scale_unity))), datasets::ConvertPolicies()), framework::dataset::make("RoundingPolicy", RoundingPolicy::TO_ZERO)),(InPlaceDataSet)))
 
 combine (combine(combine(combine(combine(combine(combine(datasets::SmallShapes(), framework::dataset::make("DataType1", DataType::S32)), framework::dataset::make("DataType2", DataType::S32)), framework::dataset::make("DataType3", DataType::S32)), framework::dataset::make("Scale", std::move(scale_other))), datasets::ConvertPolicies()), framework::dataset::make("RoundingPolicy", RoundingPolicy::TO_ZERO)),(InPlaceDataSet)))
 
 combine (combine(combine(combine(combine(combine(combine(datasets::SmallShapesBroadcast(), framework::dataset::make("DataType1", DataType::S32)), framework::dataset::make("DataType2", DataType::S32)), framework::dataset::make("DataType3", DataType::S32)), framework::dataset::make("Scale", std::move(scale_unity))), datasets::ConvertPolicies()), framework::dataset::make("RoundingPolicy", RoundingPolicy::TO_ZERO)),(framework::dataset::make("InPlace", { false }))))
 
 combine (combine(combine(combine(combine(combine(combine(datasets::SmallShapes(), framework::dataset::make("DataType1", DataType::F32)), framework::dataset::make("DataType2", DataType::F32)), framework::dataset::make("DataType3", DataType::F32)), framework::dataset::make("Scale", std::move(scale_255))), datasets::ConvertPolicies()), framework::dataset::make("RoundingPolicy", RoundingPolicy::TO_NEAREST_UP)),(InPlaceDataSet)))
 
 combine (combine(combine(combine(combine(combine(combine(datasets::SmallShapes(), framework::dataset::make("DataType1", DataType::F32)), framework::dataset::make("DataType2", DataType::F32)), framework::dataset::make("DataType3", DataType::F32)), framework::dataset::make("Scale", std::move(scale_unity))), datasets::ConvertPolicies()), framework::dataset::make("RoundingPolicy", RoundingPolicy::TO_ZERO)),(InPlaceDataSet)))
 
 combine (combine(combine(combine(combine(combine(combine(datasets::SmallShapes(), framework::dataset::make("DataType1", DataType::F32)), framework::dataset::make("DataType2", DataType::F32)), framework::dataset::make("DataType3", DataType::F32)), framework::dataset::make("Scale", std::move(scale_other))), datasets::ConvertPolicies()), framework::dataset::make("RoundingPolicy", RoundingPolicy::TO_ZERO)),(InPlaceDataSet)))
 
 combine (combine(combine(combine(combine(combine(combine(datasets::SmallShapesBroadcast(), framework::dataset::make("DataType1", DataType::F32)), framework::dataset::make("DataType2", DataType::F32)), framework::dataset::make("DataType3", DataType::F32)), framework::dataset::make("Scale", std::move(scale_255))), datasets::ConvertPolicies()), framework::dataset::make("RoundingPolicy", RoundingPolicy::TO_NEAREST_UP)),(framework::dataset::make("InPlace", { false }))))
 

Variables

 NEPixelWiseMultiplicationToU8Fixture< uint8_t >
 
 NEPixelWiseMultiplicationToS16Fixture< uint8_t >
 
 NEPixelWiseMultiplicationToS16Fixture< int16_t >
 
 NEPixelWiseMultiplicationToS32Fixture< int32_t >
 
 NEPixelWiseMultiplicationBroadcastFixture< int32_t >
 
 NEPixelWiseMultiplicationToF32Fixture< float >
 
 NEPixelWiseMultiplicationBroadcastFixture< float >
 

Macro Definition Documentation

◆ DEFAULT_VALIDATE

#define DEFAULT_VALIDATE   validate(Accessor(_target), _reference);

Definition at line 86 of file PixelWiseMultiplication.cpp.

◆ PIXEL_WISE_MULTIPLICATION_FIXTURE_DATA_TEST_CASE

#define PIXEL_WISE_MULTIPLICATION_FIXTURE_DATA_TEST_CASE (   TEST_NAME,
  FIXTURE,
  MODE,
  SHAPES,
  DT1,
  DT2,
  DT3,
  SCALE,
  RP,
  INPLACE_DATASET,
  VALIDATE 
)
Value:
FIXTURE_DATA_TEST_CASE(TEST_NAME, NEPixelWiseMultiplication##FIXTURE, framework::DatasetMode::MODE, \
datasets::SHAPES, \
framework::dataset::make("DataType1", DataType::DT1)), \
framework::dataset::make("DataType2", DataType::DT2)), \
framework::dataset::make("DataType3", DataType::DT3)), \
framework::dataset::make("Scale", std::move(SCALE))), \
datasets::ConvertPolicies()), \
framework::dataset::make("RoundingPolicy", RoundingPolicy::RP)), \
(INPLACE_DATASET))) \
{ \
VALIDATE \
}
std::enable_if< is_container< T >::value, ContainerDataset< T > >::type make(std::string name, T &&values)
Helper function to create a ContainerDataset.
#define FIXTURE_DATA_TEST_CASE(TEST_NAME, FIXTURE, MODE, DATASET)
Definition: Macros.h:254
combine(combine(combine(combine(combine(combine(combine(datasets::SmallShapesBroadcast(), framework::dataset::make("DataType1", DataType::F32)), framework::dataset::make("DataType2", DataType::F32)), framework::dataset::make("DataType3", DataType::F32)), framework::dataset::make("Scale", std::move(scale_255))), datasets::ConvertPolicies()), framework::dataset::make("RoundingPolicy", RoundingPolicy::TO_NEAREST_UP)),(framework::dataset::make("InPlace", { false }))))

Definition at line 92 of file PixelWiseMultiplication.cpp.

◆ VALIDATE

#define VALIDATE (   TYPE,
  TOLERANCE 
)    validate(Accessor(_target), _reference, AbsoluteTolerance<TYPE>(TOLERANCE), 0.f);

Definition at line 87 of file PixelWiseMultiplication.cpp.

◆ WRAP_VALIDATE

#define WRAP_VALIDATE (   TYPE,
  TOLERANCE 
)    validate_wrap(Accessor(_target), _reference, AbsoluteTolerance<TYPE>(TOLERANCE), 0.f);

Definition at line 88 of file PixelWiseMultiplication.cpp.