aboutsummaryrefslogtreecommitdiff
path: root/tests/datasets
diff options
context:
space:
mode:
Diffstat (limited to 'tests/datasets')
-rw-r--r--tests/datasets/ActivationFunctionsDataset.h17
-rw-r--r--tests/datasets/ShapeDatasets.h32
2 files changed, 48 insertions, 1 deletions
diff --git a/tests/datasets/ActivationFunctionsDataset.h b/tests/datasets/ActivationFunctionsDataset.h
index 31323dc8be..147c5ae51b 100644
--- a/tests/datasets/ActivationFunctionsDataset.h
+++ b/tests/datasets/ActivationFunctionsDataset.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017 ARM Limited.
+ * Copyright (c) 2017-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -56,6 +56,21 @@ public:
{
}
};
+
+class ActivationFunctionsQuantized final : public framework::dataset::ContainerDataset<std::vector<ActivationLayerInfo::ActivationFunction>>
+{
+public:
+ ActivationFunctionsQuantized()
+ : ContainerDataset("ActivationFunctionQuantized",
+ {
+ ActivationLayerInfo::ActivationFunction::LU_BOUNDED_RELU,
+ ActivationLayerInfo::ActivationFunction::RELU,
+ ActivationLayerInfo::ActivationFunction::LOGISTIC,
+ ActivationLayerInfo::ActivationFunction::BOUNDED_RELU
+ })
+ {
+ }
+};
} // namespace datasets
} // namespace test
} // namespace arm_compute
diff --git a/tests/datasets/ShapeDatasets.h b/tests/datasets/ShapeDatasets.h
index c7955bc8c5..551e7ffa8c 100644
--- a/tests/datasets/ShapeDatasets.h
+++ b/tests/datasets/ShapeDatasets.h
@@ -846,6 +846,38 @@ public:
{
}
};
+
+/** Data set containing small YOLO tensor shapes. */
+class SmallYOLOShapes final : public ShapeDataset
+{
+public:
+ SmallYOLOShapes()
+ : ShapeDataset("Shape",
+ {
+ // Batch size 1
+ TensorShape{ 11U, 11U, 270U },
+ TensorShape{ 27U, 13U, 90U },
+ TensorShape{ 128U, 64U, 45U, 2U },
+ TensorShape{ 11U, 11U, 45U, 3U }
+ })
+ {
+ }
+};
+
+/** Data set containing large YOLO tensor shapes. */
+class LargeYOLOShapes final : public ShapeDataset
+{
+public:
+ LargeYOLOShapes()
+ : ShapeDataset("Shape",
+ {
+ TensorShape{ 24U, 23U, 270U },
+ TensorShape{ 51U, 63U, 90U, 2U },
+ TensorShape{ 76U, 91U, 45U, 3U }
+ })
+ {
+ }
+};
} // namespace datasets
} // namespace test
} // namespace arm_compute