blob: 9b531add19d099533595e59bffe746d7156426b9 [file] [log] [blame]
Teresa Charlin8398edc2020-07-20 14:23:02 +01001//
2// Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5
6#pragma once
7
8#include <armnn/Descriptors.hpp>
9
10#include <arm_compute/core/Error.h>
11#include <arm_compute/runtime/MemoryManagerOnDemand.h>
12#include <arm_compute/runtime/CL/functions/CLSoftmaxLayer.h>
13
14
15#include <backendsCommon/Workload.hpp>
16
17namespace armnn
18{
19
20arm_compute::Status ClLogSoftmaxWorkloadValidate(const TensorInfo& input,
21 const TensorInfo& output,
22 const LogSoftmaxDescriptor& descriptor);
23
24class ClLogSoftmaxWorkload : public BaseWorkload<LogSoftmaxQueueDescriptor>
25{
26public:
27 ClLogSoftmaxWorkload(const LogSoftmaxQueueDescriptor& descriptor, const WorkloadInfo& info,
28 std::shared_ptr<arm_compute::MemoryManagerOnDemand>& memoryManager);
29 void Execute() const override;
30
31private:
32 mutable arm_compute::CLLogSoftmaxLayer m_LogSoftmaxLayer;
33};
34
35} // namespace armnn