From ec81999c4f41380b8181672cb73b5bf6bf08e5c3 Mon Sep 17 00:00:00 2001 From: David Monahan Date: Thu, 10 Feb 2022 14:47:13 +0000 Subject: IVGCVSW-6700 Add override functions to all typed Neon/CL workloads * Neon and CL workloads which inherit from TypedWorkload instead of the BaseWorklod for their backend do not contain the correct ReplaceInputTensorHandle/ReplaceOutputTensorHandle and Reconfigure functions. So they have been added directly. * Removed the Profiling call from ClConvolution2dWorkload::Reconfigure() to avoid a segfault Signed-off-by: David Monahan Change-Id: I7b9d1b48fdb17db1662dc03c22acc746340ce73f --- src/backends/cl/workloads/ClL2NormalizationFloatWorkload.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/backends/cl/workloads/ClL2NormalizationFloatWorkload.hpp') diff --git a/src/backends/cl/workloads/ClL2NormalizationFloatWorkload.hpp b/src/backends/cl/workloads/ClL2NormalizationFloatWorkload.hpp index cfa1a97eec..67e7b8b7b1 100644 --- a/src/backends/cl/workloads/ClL2NormalizationFloatWorkload.hpp +++ b/src/backends/cl/workloads/ClL2NormalizationFloatWorkload.hpp @@ -24,10 +24,16 @@ public: const arm_compute::CLCompileContext& clCompileContext); void Execute() const override; + // Replace input tensor handle with the given TensorHandle + void ReplaceInputTensorHandle(ITensorHandle* tensorHandle, unsigned int slot) override; + + // Replace output tensor handle with the given TensorHandle + void ReplaceOutputTensorHandle(ITensorHandle* tensorHandle, unsigned int slot) override; private: // Purposely not a CLL2Normalize function. See constructor. mutable arm_compute::CLL2NormalizeLayer m_Layer; + virtual void Reconfigure(); }; } //namespace armnn -- cgit v1.2.1