ArmNN
 24.02
ClFullyConnectedWorkload.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
8 #include "ClBaseWorkload.hpp"
9 
10 #include <arm_compute/runtime/CL/functions/CLFullyConnectedLayer.h>
11 #include <arm_compute/runtime/MemoryManagerOnDemand.h>
12 
13 #include <memory>
14 
15 namespace armnn
16 {
17 
19  const TensorInfo& output,
20  const TensorInfo& weights,
21  const Optional<TensorInfo>& biases,
22  const FullyConnectedDescriptor& descriptor,
23  const ActivationDescriptor* activationDescriptor = nullptr);
24 
25 class ClFullyConnectedWorkload : public ClBaseWorkload<FullyConnectedQueueDescriptor>
26 {
27 public:
29  const WorkloadInfo& info,
30  std::shared_ptr<arm_compute::MemoryManagerOnDemand>& memoryManager,
31  const arm_compute::CLCompileContext& clCompileContext);
32 
34  void Execute() const override;
35 
36 private:
37  mutable arm_compute::CLFullyConnectedLayer m_FullyConnectedLayer;
38 };
39 
40 } //namespace armnn
armnn::FullyConnectedQueueDescriptor
Definition: WorkloadData.hpp:180
armnn::ClFullyConnectedWorkload
Definition: ClFullyConnectedWorkload.hpp:25
armnn::ClBaseWorkload
Definition: ClBaseWorkload.hpp:13
armnn::ClFullyConnectedWorkloadValidate
arm_compute::Status ClFullyConnectedWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const TensorInfo &weights, const Optional< TensorInfo > &biases, const FullyConnectedDescriptor &descriptor, const ActivationDescriptor *activationDescriptor)
Definition: ClFullyConnectedWorkload.cpp:19
armnn::ClFullyConnectedWorkload::ClFullyConnectedWorkload
ClFullyConnectedWorkload(const FullyConnectedQueueDescriptor &descriptor, const WorkloadInfo &info, std::shared_ptr< arm_compute::MemoryManagerOnDemand > &memoryManager, const arm_compute::CLCompileContext &clCompileContext)
Definition: ClFullyConnectedWorkload.cpp:51
armnn::WorkloadInfo
Contains information about TensorInfos of a layer.
Definition: WorkloadInfo.hpp:16
armnn::BoostLogSeverityMapping::info
@ info
armnn::Status
Status
Definition: Types.hpp:42
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition: 01_00_quick_start.dox:6
armnn::ClFullyConnectedWorkload::Execute
void Execute() const override
Definition: ClFullyConnectedWorkload.cpp:102
ClBaseWorkload.hpp