diff options
Diffstat (limited to 'src/backends/cl/workloads/ClSoftmaxWorkload.hpp')
-rw-r--r-- | src/backends/cl/workloads/ClSoftmaxWorkload.hpp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/backends/cl/workloads/ClSoftmaxWorkload.hpp b/src/backends/cl/workloads/ClSoftmaxWorkload.hpp new file mode 100644 index 0000000000..158bf46c32 --- /dev/null +++ b/src/backends/cl/workloads/ClSoftmaxWorkload.hpp @@ -0,0 +1,34 @@ +// +// Copyright © 2020 Arm Ltd. All rights reserved. +// SPDX-License-Identifier: MIT +// + +#pragma once + +#include <armnn/Descriptors.hpp> + +#include <arm_compute/core/Error.h> +#include <arm_compute/runtime/MemoryManagerOnDemand.h> +#include <arm_compute/runtime/CL/functions/CLSoftmaxLayer.h> + +#include <backendsCommon/Workload.hpp> + +namespace armnn +{ + +arm_compute::Status ClSoftmaxWorkloadValidate(const TensorInfo& input, + const TensorInfo& output, + const SoftmaxDescriptor& descriptor); + +class ClSoftmaxWorkload : public BaseWorkload<SoftmaxQueueDescriptor> +{ +public: + ClSoftmaxWorkload(const SoftmaxQueueDescriptor& descriptor, const WorkloadInfo& info, + std::shared_ptr<arm_compute::MemoryManagerOnDemand>& memoryManager); + void Execute() const override; + +private: + mutable arm_compute::CLSoftmaxLayer m_SoftmaxLayer; +}; + +} // namespace armnn |