blob: 7efdae858a527f8d792cfd64a21bc5f2952d9aee [file] [log] [blame]
telsoa014fcda012018-03-09 14:13:49 +00001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
David Beckecb56cd2018-09-05 12:52:57 +01003// SPDX-License-Identifier: MIT
telsoa014fcda012018-03-09 14:13:49 +00004//
5
6#pragma once
7
Aron Virginas-Tarc9cc8042018-11-01 16:15:57 +00008#include <backendsCommon/Workload.hpp>
telsoa014fcda012018-03-09 14:13:49 +00009
Matthew Bentham9b3e7382020-02-05 21:39:55 +000010#include <arm_compute/runtime/CL/functions/CLSoftmaxLayer.h>
David Beckac42efd2018-09-26 17:41:13 +010011#include <arm_compute/runtime/MemoryManagerOnDemand.h>
surmeh013537c2c2018-05-18 16:31:43 +010012
13#include <memory>
14
telsoa014fcda012018-03-09 14:13:49 +000015namespace armnn
16{
17
arovir019e53a352018-08-31 15:26:35 +010018class ClSoftmaxFloatWorkload : public FloatWorkload<SoftmaxQueueDescriptor>
telsoa014fcda012018-03-09 14:13:49 +000019{
20public:
arovir019e53a352018-08-31 15:26:35 +010021 ClSoftmaxFloatWorkload(const SoftmaxQueueDescriptor& descriptor, const WorkloadInfo& info,
surmeh013537c2c2018-05-18 16:31:43 +010022 std::shared_ptr<arm_compute::MemoryManagerOnDemand>& memoryManager);
telsoa014fcda012018-03-09 14:13:49 +000023 void Execute() const override;
24
25private:
26 mutable arm_compute::CLSoftmaxLayer m_SoftmaxLayer;
27};
28
29} //namespace armnn
30