aboutsummaryrefslogtreecommitdiff
path: root/src/backends/cl/workloads/ClLogSoftmaxWorkload.hpp
diff options
context:
space:
mode:
authorTeresa Charlin <teresa.charlinreyes@arm.com>2020-07-20 14:23:02 +0100
committerJim Flynn <jim.flynn@arm.com>2020-07-24 22:51:19 +0000
commit8398edcfb933b638ddf4b88d84d6e188c49b1e0d (patch)
tree2dbb158b19c135007baf6178d84acf9e770938d9 /src/backends/cl/workloads/ClLogSoftmaxWorkload.hpp
parent2ebe095eec687f03c2f23051b31cfa4309d3e67b (diff)
downloadarmnn-8398edcfb933b638ddf4b88d84d6e188c49b1e0d.tar.gz
IVGCVSW-3896 Add CL LOG_SOFTMAX Workload
Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com> Change-Id: I6c5704c6c7bcf1dd008061c037c81a712365aa74
Diffstat (limited to 'src/backends/cl/workloads/ClLogSoftmaxWorkload.hpp')
-rw-r--r--src/backends/cl/workloads/ClLogSoftmaxWorkload.hpp35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/backends/cl/workloads/ClLogSoftmaxWorkload.hpp b/src/backends/cl/workloads/ClLogSoftmaxWorkload.hpp
new file mode 100644
index 0000000000..9b531add19
--- /dev/null
+++ b/src/backends/cl/workloads/ClLogSoftmaxWorkload.hpp
@@ -0,0 +1,35 @@
+//
+// Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
+// SPDX-License-Identifier: MIT
+//
+
+#pragma once
+
+#include <armnn/Descriptors.hpp>
+
+#include <arm_compute/core/Error.h>
+#include <arm_compute/runtime/MemoryManagerOnDemand.h>
+#include <arm_compute/runtime/CL/functions/CLSoftmaxLayer.h>
+
+
+#include <backendsCommon/Workload.hpp>
+
+namespace armnn
+{
+
+arm_compute::Status ClLogSoftmaxWorkloadValidate(const TensorInfo& input,
+ const TensorInfo& output,
+ const LogSoftmaxDescriptor& descriptor);
+
+class ClLogSoftmaxWorkload : public BaseWorkload<LogSoftmaxQueueDescriptor>
+{
+public:
+ ClLogSoftmaxWorkload(const LogSoftmaxQueueDescriptor& descriptor, const WorkloadInfo& info,
+ std::shared_ptr<arm_compute::MemoryManagerOnDemand>& memoryManager);
+ void Execute() const override;
+
+private:
+ mutable arm_compute::CLLogSoftmaxLayer m_LogSoftmaxLayer;
+};
+
+} // namespace armnn