diff options
Diffstat (limited to 'src/backends/cl/workloads/ClLogSoftmaxWorkload.hpp')
-rw-r--r-- | src/backends/cl/workloads/ClLogSoftmaxWorkload.hpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/backends/cl/workloads/ClLogSoftmaxWorkload.hpp b/src/backends/cl/workloads/ClLogSoftmaxWorkload.hpp new file mode 100644 index 0000000000..9b531add19 --- /dev/null +++ b/src/backends/cl/workloads/ClLogSoftmaxWorkload.hpp @@ -0,0 +1,35 @@ +// +// Copyright © 2020 Arm Ltd and Contributors. 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 ClLogSoftmaxWorkloadValidate(const TensorInfo& input, + const TensorInfo& output, + const LogSoftmaxDescriptor& descriptor); + +class ClLogSoftmaxWorkload : public BaseWorkload<LogSoftmaxQueueDescriptor> +{ +public: + ClLogSoftmaxWorkload(const LogSoftmaxQueueDescriptor& descriptor, const WorkloadInfo& info, + std::shared_ptr<arm_compute::MemoryManagerOnDemand>& memoryManager); + void Execute() const override; + +private: + mutable arm_compute::CLLogSoftmaxLayer m_LogSoftmaxLayer; +}; + +} // namespace armnn |