ArmNN
 25.11
Loading...
Searching...
No Matches
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
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
16namespace armnn
17{
18
19arm_compute::Status ClSoftmaxWorkloadValidate(const TensorInfo& input,
20 const TensorInfo& output,
21 const SoftmaxDescriptor& descriptor);
22
23class ClSoftmaxWorkload : public ClBaseWorkload<SoftmaxQueueDescriptor>
24{
25public:
27 const WorkloadInfo& info,
28 std::shared_ptr<arm_compute::MemoryManagerOnDemand>& memoryManager,
29 const arm_compute::CLCompileContext& clCompileContext);
30 void Execute() const override;
31
32private:
33 mutable arm_compute::CLSoftmaxLayer m_SoftmaxLayer;
34};
35
36} // namespace armnn
ClBaseWorkload(const SoftmaxQueueDescriptor &descriptor, const WorkloadInfo &info)
void Execute() const override
ClSoftmaxWorkload(const SoftmaxQueueDescriptor &descriptor, const WorkloadInfo &info, std::shared_ptr< arm_compute::MemoryManagerOnDemand > &memoryManager, const arm_compute::CLCompileContext &clCompileContext)
Copyright (c) 2021 ARM Limited and Contributors.
arm_compute::Status ClSoftmaxWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const SoftmaxDescriptor &descriptor)
A SoftmaxDescriptor for the SoftmaxLayer.
Contains information about TensorInfos of a layer.