Release 18.08
[platform/upstream/armnn.git] / src / armnn / backends / ClWorkloads / ClSoftmaxFloat32Workload.hpp
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // See LICENSE file in the project root for full license information.
4 //
5
6 #pragma once
7
8 #include "backends/ClWorkloadUtils.hpp"
9
10 #include "arm_compute/runtime/MemoryManagerOnDemand.h"
11
12 #include <memory>
13
14 namespace armnn
15 {
16
17 class ClSoftmaxFloat32Workload : public FloatWorkload<SoftmaxQueueDescriptor>
18 {
19 public:
20     ClSoftmaxFloat32Workload(const SoftmaxQueueDescriptor& descriptor, const WorkloadInfo& info,
21                              std::shared_ptr<arm_compute::MemoryManagerOnDemand>& memoryManager);
22     void Execute() const override;
23
24 private:
25     mutable arm_compute::CLSoftmaxLayer m_SoftmaxLayer;
26 };
27
28 } //namespace armnn
29