aboutsummaryrefslogtreecommitdiff
path: root/src/backends/reference/workloads/RefGatherWorkload.hpp
diff options
context:
space:
mode:
authorEllen Norris-Thompson <ellen.norris-thompson@arm.com>2019-06-21 15:50:00 +0100
committerEllen Norris-Thompson <ellen.norris-thompson@arm.com>2019-06-24 11:14:48 +0100
commit6858d3fb714cc20d5fcfd814c35ed3a84dc82145 (patch)
treedb6a6651fff0dce4095be58bc155e63175abe33e /src/backends/reference/workloads/RefGatherWorkload.hpp
parent389aa70c8a24fa2faf33df5f8cd9a99b0fabe971 (diff)
downloadarmnn-6858d3fb714cc20d5fcfd814c35ed3a84dc82145.tar.gz
IVGCVSW-3247: Refactor reference Gather workload
* Refactored Gather reference workload to not use templates for different types * Added quantization values in Gather unit tests for Quantized types Signed-off-by: Ellen Norris-Thompson <ellen.norris-thompson@arm.com> Change-Id: Ibe5d655aa1c287824e45b83818c5862bda7f92b0
Diffstat (limited to 'src/backends/reference/workloads/RefGatherWorkload.hpp')
-rw-r--r--src/backends/reference/workloads/RefGatherWorkload.hpp20
1 files changed, 5 insertions, 15 deletions
diff --git a/src/backends/reference/workloads/RefGatherWorkload.hpp b/src/backends/reference/workloads/RefGatherWorkload.hpp
index 27827490e3..30019a8d4d 100644
--- a/src/backends/reference/workloads/RefGatherWorkload.hpp
+++ b/src/backends/reference/workloads/RefGatherWorkload.hpp
@@ -9,28 +9,18 @@
#include <backendsCommon/WorkloadData.hpp>
#include <armnn/TypesUtils.hpp>
+#include "BaseIterator.hpp"
+#include "Decoders.hpp"
+#include "Encoders.hpp"
namespace armnn
{
-template <armnn::DataType DataType>
-class RefGatherWorkload : public FirstInputTypedWorkload<GatherQueueDescriptor, DataType>
+class RefGatherWorkload : public BaseWorkload<GatherQueueDescriptor>
{
public:
-
- static const std::string& GetName()
- {
- static const std::string name = std::string("RefGather") + GetDataTypeName(DataType) + "Workload";
- return name;
- }
-
- using FirstInputTypedWorkload<GatherQueueDescriptor, DataType>::m_Data;
- using FirstInputTypedWorkload<GatherQueueDescriptor, DataType>::FirstInputTypedWorkload;
-
+ using BaseWorkload<GatherQueueDescriptor>::BaseWorkload;
void Execute() const override;
};
-using RefGatherFloat32Workload = RefGatherWorkload<DataType::Float32>;
-using RefGatherUint8Workload = RefGatherWorkload<DataType::QuantisedAsymm8>;
-
} // namespace armnn