diff options
author | David Monahan <David.Monahan@arm.com> | 2022-02-10 14:47:13 +0000 |
---|---|---|
committer | David Monahan <david.monahan@arm.com> | 2022-02-10 14:52:37 +0000 |
commit | ec81999c4f41380b8181672cb73b5bf6bf08e5c3 (patch) | |
tree | 37d1dec4b6a4c7c2e90b91d107de767dcda1f0e1 /src/backends/cl/workloads/ClFloorFloatWorkload.hpp | |
parent | c92bbd79eb0c3187031e33c8d6d70773a7d81737 (diff) | |
download | armnn-ec81999c4f41380b8181672cb73b5bf6bf08e5c3.tar.gz |
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 <David.Monahan@arm.com>
Change-Id: I7b9d1b48fdb17db1662dc03c22acc746340ce73f
Diffstat (limited to 'src/backends/cl/workloads/ClFloorFloatWorkload.hpp')
-rw-r--r-- | src/backends/cl/workloads/ClFloorFloatWorkload.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/backends/cl/workloads/ClFloorFloatWorkload.hpp b/src/backends/cl/workloads/ClFloorFloatWorkload.hpp index 5740c6887a..dbe5f6f163 100644 --- a/src/backends/cl/workloads/ClFloorFloatWorkload.hpp +++ b/src/backends/cl/workloads/ClFloorFloatWorkload.hpp @@ -23,9 +23,14 @@ 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: mutable arm_compute::CLFloor m_Layer; + virtual void Reconfigure(); }; } //namespace armnn |