24.02
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
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
15
#include "
ClBaseWorkload.hpp
"
16
17
namespace
armnn
18
{
19
20
arm_compute::Status
ClLogSoftmaxWorkloadValidate
(
const
TensorInfo& input,
21
const
TensorInfo& output,
22
const
LogSoftmaxDescriptor
& descriptor);
23
24
class
ClLogSoftmaxWorkload
:
public
ClBaseWorkload
<LogSoftmaxQueueDescriptor>
25
{
26
public
:
27
ClLogSoftmaxWorkload
(
const
LogSoftmaxQueueDescriptor
& descriptor,
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::CLLogSoftmaxLayer m_LogSoftmaxLayer;
34
};
35
36
}
// namespace armnn
Descriptors.hpp
armnn::ClLogSoftmaxWorkload::ClLogSoftmaxWorkload
ClLogSoftmaxWorkload(const LogSoftmaxQueueDescriptor &descriptor, const WorkloadInfo &info, std::shared_ptr< arm_compute::MemoryManagerOnDemand > &memoryManager, const arm_compute::CLCompileContext &clCompileContext)
Definition:
ClLogSoftmaxWorkload.cpp:28
armnn::ClLogSoftmaxWorkload
Definition:
ClLogSoftmaxWorkload.hpp:24
armnn::ClBaseWorkload
Definition:
ClBaseWorkload.hpp:13
armnn::ClLogSoftmaxWorkload::Execute
void Execute() const override
Definition:
ClLogSoftmaxWorkload.cpp:54
armnn::LogSoftmaxDescriptor
SoftmaxDescriptor LogSoftmaxDescriptor
A LogSoftmaxDescriptor for the LogSoftmaxLayer.
Definition:
Descriptors.hpp:196
armnn::WorkloadInfo
Contains information about TensorInfos of a layer.
Definition:
WorkloadInfo.hpp:16
armnn::BoostLogSeverityMapping::info
@ info
armnn::LogSoftmaxQueueDescriptor
Definition:
WorkloadData.hpp:363
armnn::Status
Status
Definition:
Types.hpp:42
armnn::ClLogSoftmaxWorkloadValidate
arm_compute::Status ClLogSoftmaxWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const LogSoftmaxDescriptor &descriptor)
Definition:
ClLogSoftmaxWorkload.cpp:17
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition:
01_00_quick_start.dox:6
ClBaseWorkload.hpp
src
backends
cl
workloads
ClLogSoftmaxWorkload.hpp
Generated on Wed Feb 14 2024 16:36:16 for Arm NN by
1.8.17