aboutsummaryrefslogtreecommitdiff
path: root/tests/validation/fixtures
diff options
context:
space:
mode:
authorMichalis Spyrou <michalis.spyrou@arm.com>2019-05-17 14:04:47 +0100
committerMichalis Spyrou <michalis.spyrou@arm.com>2019-05-20 11:47:29 +0000
commit0af4418f4d4b6bceaea64fa21eaf127b1b8fed35 (patch)
treee8bb9a755182419752e014aecdef2bfc78ed0f0a /tests/validation/fixtures
parent3db1ba9938986e7096184ad22020a71775075d03 (diff)
downloadComputeLibrary-0af4418f4d4b6bceaea64fa21eaf127b1b8fed35.tar.gz
COMPMID-2282: Implement SIN operator for CL
Change-Id: I9f67d2b0ccfddaecb0f26bab2b04b87212495502 Reviewed-on: https://review.mlplatform.org/c/1156 Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests/validation/fixtures')
-rw-r--r--tests/validation/fixtures/ElementWiseUnaryFixture.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/validation/fixtures/ElementWiseUnaryFixture.h b/tests/validation/fixtures/ElementWiseUnaryFixture.h
index 37da3b1405..7837b085fa 100644
--- a/tests/validation/fixtures/ElementWiseUnaryFixture.h
+++ b/tests/validation/fixtures/ElementWiseUnaryFixture.h
@@ -98,6 +98,12 @@ protected:
library->fill(tensor, distribution, i);
break;
}
+ case ElementWiseUnary::SIN:
+ {
+ std::uniform_real_distribution<> distribution(100.0f, -100.0f);
+ library->fill(tensor, distribution, i);
+ break;
+ }
default:
ARM_COMPUTE_ERROR("Not implemented");
}
@@ -202,6 +208,17 @@ public:
ElementWiseUnaryValidationFixture<TensorType, AccessorType, FunctionType, T>::setup(shape, data_type, ElementWiseUnary::ABS);
}
};
+
+template <typename TensorType, typename AccessorType, typename FunctionType, typename T>
+class SinValidationFixture : 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::SIN);
+ }
+};
} // namespace validation
} // namespace test
} // namespace arm_compute