blob: 9c11b27bb57f0c59699ef3f3c841c35b00ae77c4 [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 <neon/workloads/NeonWorkloadUtils.hpp>
David Beck0dbe0ee2018-09-24 15:59:27 +01009#include <arm_compute/runtime/MemoryManagerOnDemand.h>
surmeh013537c2c2018-05-18 16:31:43 +010010
11#include <memory>
12
telsoa014fcda012018-03-09 14:13:49 +000013namespace armnn
14{
15
arovir019e53a352018-08-31 15:26:35 +010016class NeonSoftmaxFloatWorkload : public FloatWorkload<SoftmaxQueueDescriptor>
telsoa014fcda012018-03-09 14:13:49 +000017{
18public:
arovir019e53a352018-08-31 15:26:35 +010019 NeonSoftmaxFloatWorkload(const SoftmaxQueueDescriptor& descriptor, const WorkloadInfo& info,
surmeh013537c2c2018-05-18 16:31:43 +010020 std::shared_ptr<arm_compute::MemoryManagerOnDemand>& memoryManager);
arovir019e53a352018-08-31 15:26:35 +010021 virtual void Execute() const override;
telsoa014fcda012018-03-09 14:13:49 +000022
23private:
arovir019e53a352018-08-31 15:26:35 +010024 mutable arm_compute::NESoftmaxLayer m_SoftmaxLayer;
telsoa014fcda012018-03-09 14:13:49 +000025};
26
27} //namespace armnn
28