aboutsummaryrefslogtreecommitdiff
path: root/tests/validation/fixtures/ElementWiseUnaryFixture.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/validation/fixtures/ElementWiseUnaryFixture.h')
-rw-r--r--tests/validation/fixtures/ElementWiseUnaryFixture.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/validation/fixtures/ElementWiseUnaryFixture.h b/tests/validation/fixtures/ElementWiseUnaryFixture.h
index 1658ed00bb..37da3b1405 100644
--- a/tests/validation/fixtures/ElementWiseUnaryFixture.h
+++ b/tests/validation/fixtures/ElementWiseUnaryFixture.h
@@ -69,6 +69,7 @@ protected:
library->fill(tensor, distribution, i);
break;
}
+ case ElementWiseUnary::ABS:
case ElementWiseUnary::NEG:
{
switch(data_type)
@@ -190,6 +191,17 @@ public:
ElementWiseUnaryValidationFixture<TensorType, AccessorType, FunctionType, T>::setup(shape, data_type, ElementWiseUnary::LOG);
}
};
+
+template <typename TensorType, typename AccessorType, typename FunctionType, typename T>
+class AbsValidationFixture : public ElementWiseUnaryValidationFixture<TensorType, AccessorType, FunctionType, T>
+{
+public:
+ template <typename...>
+ void setup(const TensorShape &shape, DataType data_type)
+ {
+ ElementWiseUnaryValidationFixture<TensorType, AccessorType, FunctionType, T>::setup(shape, data_type, ElementWiseUnary::ABS);
+ }
+};
} // namespace validation
} // namespace test
} // namespace arm_compute