Sadik Armagan | be88a57 | 2020-04-30 11:39:37 +0100 | [diff] [blame] | 1 | // |
Teresa Charlin | 588cbdf | 2022-01-19 15:55:37 +0000 | [diff] [blame] | 2 | // Copyright © 2020 Arm Ltd and Contributors. All rights reserved. |
Sadik Armagan | be88a57 | 2020-04-30 11:39:37 +0100 | [diff] [blame] | 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
| 8 | #include <armnn/Descriptors.hpp> |
Teresa Charlin | 588cbdf | 2022-01-19 15:55:37 +0000 | [diff] [blame] | 9 | #include "NeonBaseWorkload.hpp" |
Sadik Armagan | be88a57 | 2020-04-30 11:39:37 +0100 | [diff] [blame] | 10 | |
| 11 | #include <arm_compute/core/Error.h> |
| 12 | #include <arm_compute/runtime/IFunction.h> |
| 13 | #include <arm_compute/runtime/MemoryManagerOnDemand.h> |
| 14 | |
| 15 | #include <memory> |
| 16 | |
| 17 | namespace armnn |
| 18 | { |
| 19 | |
| 20 | arm_compute::Status NeonSoftmaxWorkloadValidate(const TensorInfo& input, |
| 21 | const TensorInfo& output, |
| 22 | const SoftmaxDescriptor& descriptor); |
| 23 | |
Teresa Charlin | 588cbdf | 2022-01-19 15:55:37 +0000 | [diff] [blame] | 24 | class NeonSoftmaxWorkload : public NeonBaseWorkload<SoftmaxQueueDescriptor> |
Sadik Armagan | be88a57 | 2020-04-30 11:39:37 +0100 | [diff] [blame] | 25 | { |
| 26 | public: |
| 27 | NeonSoftmaxWorkload(const SoftmaxQueueDescriptor& descriptor, const WorkloadInfo& info, |
| 28 | std::shared_ptr<arm_compute::MemoryManagerOnDemand>& memoryManager); |
| 29 | virtual void Execute() const override; |
| 30 | |
| 31 | private: |
| 32 | std::unique_ptr<arm_compute::IFunction> m_SoftmaxLayer; |
| 33 | }; |
| 34 | |
| 35 | } //namespace armnn |
| 36 | |