ArmNN
 25.11
Loading...
Searching...
No Matches
ClLogSoftmaxWorkload.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
15#include "ClBaseWorkload.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 ClBaseWorkload<LogSoftmaxQueueDescriptor>
25{
26public:
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::CLLogSoftmaxLayer m_LogSoftmaxLayer;
34};
35
36} // namespace armnn
ClBaseWorkload(const LogSoftmaxQueueDescriptor &descriptor, const WorkloadInfo &info)
ClLogSoftmaxWorkload(const LogSoftmaxQueueDescriptor &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 ClLogSoftmaxWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const LogSoftmaxDescriptor &descriptor)
SoftmaxDescriptor LogSoftmaxDescriptor
A LogSoftmaxDescriptor for the LogSoftmaxLayer.
Contains information about TensorInfos of a layer.