ArmNN
 24.08
ClSoftmaxWorkload.hpp
Go to the documentation of this file.
1 //
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 #include "ClBaseWorkload.hpp"
15 
16 namespace armnn
17 {
18 
19 arm_compute::Status ClSoftmaxWorkloadValidate(const TensorInfo& input,
20  const TensorInfo& output,
21  const SoftmaxDescriptor& descriptor);
22 
23 class ClSoftmaxWorkload : public ClBaseWorkload<SoftmaxQueueDescriptor>
24 {
25 public:
26  ClSoftmaxWorkload(const SoftmaxQueueDescriptor& descriptor,
27  const WorkloadInfo& info,
28  std::shared_ptr<arm_compute::MemoryManagerOnDemand>& memoryManager,
29  const arm_compute::CLCompileContext& clCompileContext);
30  void Execute() const override;
31 
32 private:
33  mutable arm_compute::CLSoftmaxLayer m_SoftmaxLayer;
34 };
35 
36 } // namespace armnn
Descriptors.hpp
armnn::ClBaseWorkload
Definition: ClBaseWorkload.hpp:13
armnn::ClSoftmaxWorkload
Definition: ClSoftmaxWorkload.hpp:23
armnn::ClSoftmaxWorkload::Execute
void Execute() const override
Definition: ClSoftmaxWorkload.cpp:53
armnn::WorkloadInfo
Contains information about TensorInfos of a layer.
Definition: WorkloadInfo.hpp:16
armnn::ClSoftmaxWorkloadValidate
arm_compute::Status ClSoftmaxWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const SoftmaxDescriptor &descriptor)
Definition: ClSoftmaxWorkload.cpp:17
armnn::BoostLogSeverityMapping::info
@ info
armnn::SoftmaxQueueDescriptor
Definition: WorkloadData.hpp:105
armnn::Status
Status
Definition: Types.hpp:42
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition: 01_00_quick_start.dox:6
ClBaseWorkload.hpp
armnn::ClSoftmaxWorkload::ClSoftmaxWorkload
ClSoftmaxWorkload(const SoftmaxQueueDescriptor &descriptor, const WorkloadInfo &info, std::shared_ptr< arm_compute::MemoryManagerOnDemand > &memoryManager, const arm_compute::CLCompileContext &clCompileContext)
Definition: ClSoftmaxWorkload.cpp:28