ArmNN
 24.08
NeonFusedWorkload.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2023 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
8 #include "NeonBaseWorkload.hpp"
9 
10 #include <arm_compute/core/Error.h>
11 #include <arm_compute/core/Types.h>
12 #include <arm_compute/runtime/IFunction.h>
13 
14 namespace armnn
15 {
16 
17 arm_compute::Status NeonFusedWorkloadValidate(const std::vector<std::reference_wrapper<TensorInfo>>& inputInfos,
18  const std::vector<std::reference_wrapper<TensorInfo>>& outputInfos,
19  const FusedDescriptor& fusedDescriptor,
20  const ActivationDescriptor* activationDescriptor = nullptr);
21 
22 class NeonFusedWorkload : public NeonBaseWorkload<FusedQueueDescriptor>
23 {
24 public:
25  NeonFusedWorkload(const FusedQueueDescriptor& descriptor, const WorkloadInfo& info);
26  virtual void Execute() const override;
27 
28 private:
29  std::unique_ptr<arm_compute::IFunction> m_FusedLayer;
30 };
31 
32 } //namespace armnn
33 
34 
35 
armnn::NeonFusedWorkload
Definition: NeonFusedWorkload.hpp:22
armnn::NeonFusedWorkload::Execute
virtual void Execute() const override
Definition: NeonFusedWorkload.cpp:108
NeonBaseWorkload.hpp
armnn::FusedQueueDescriptor
Definition: WorkloadData.hpp:185
armnn::WorkloadInfo
Contains information about TensorInfos of a layer.
Definition: WorkloadInfo.hpp:16
armnn::NeonFusedWorkload::NeonFusedWorkload
NeonFusedWorkload(const FusedQueueDescriptor &descriptor, const WorkloadInfo &info)
Definition: NeonFusedWorkload.cpp:63
armnn::BoostLogSeverityMapping::info
@ info
armnn::Status
Status
Definition: Types.hpp:42
armnn::NeonFusedWorkloadValidate
arm_compute::Status NeonFusedWorkloadValidate(const std::vector< std::reference_wrapper< TensorInfo >> &inputInfos, const std::vector< std::reference_wrapper< TensorInfo >> &outputInfos, const FusedDescriptor &fusedDescriptor, const ActivationDescriptor *activationDescriptor)
Definition: NeonFusedWorkload.cpp:22
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition: 01_00_quick_start.dox:6
armnn::NeonBaseWorkload
Definition: NeonBaseWorkload.hpp:13