ArmNN
 24.08
NeonNormalizationFloatWorkload.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 
9 
10 #include <arm_compute/core/Error.h>
11 #include <arm_compute/runtime/IFunction.h>
12 #include <arm_compute/runtime/MemoryManagerOnDemand.h>
13 
14 #include <memory>
15 
16 namespace armnn
17 {
18 
20  const TensorInfo& output,
21  const NormalizationDescriptor& descriptor);
22 
23 class NeonNormalizationFloatWorkload : public FloatWorkload<NormalizationQueueDescriptor>
24 {
25 public:
27  std::shared_ptr<arm_compute::MemoryManagerOnDemand>& memoryManager);
28  virtual void Execute() const override;
29  // Replace input tensor handle with the given TensorHandle
30  void ReplaceInputTensorHandle(ITensorHandle* tensorHandle, unsigned int slot) override;
31 
32  // Replace output tensor handle with the given TensorHandle
33  void ReplaceOutputTensorHandle(ITensorHandle* tensorHandle, unsigned int slot) override;
34 private:
35  std::unique_ptr<arm_compute::IFunction> m_NormalizationLayer;
36  virtual void Reconfigure();
37 };
38 
39 } //namespace armnn
40 
41 
42 
43 
armnn::NormalizationQueueDescriptor
Definition: WorkloadData.hpp:252
armnn::NeonNormalizationFloatWorkload::Execute
virtual void Execute() const override
Definition: NeonNormalizationFloatWorkload.cpp:107
armnn::ITensorHandle
Definition: ITensorHandle.hpp:16
armnn::TypedWorkload
Definition: Workload.hpp:101
armnn::NeonNormalizationFloatWorkload::NeonNormalizationFloatWorkload
NeonNormalizationFloatWorkload(const NormalizationQueueDescriptor &descriptor, const WorkloadInfo &info, std::shared_ptr< arm_compute::MemoryManagerOnDemand > &memoryManager)
Definition: NeonNormalizationFloatWorkload.cpp:61
armnn::NeonNormalizationWorkloadValidate
arm_compute::Status NeonNormalizationWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const NormalizationDescriptor &descriptor)
Definition: NeonNormalizationFloatWorkload.cpp:49
armnn::NeonNormalizationFloatWorkload::ReplaceOutputTensorHandle
void ReplaceOutputTensorHandle(ITensorHandle *tensorHandle, unsigned int slot) override
Definition: NeonNormalizationFloatWorkload.cpp:130
armnn::WorkloadInfo
Contains information about TensorInfos of a layer.
Definition: WorkloadInfo.hpp:16
Workload.hpp
armnn::NeonNormalizationFloatWorkload
Definition: NeonNormalizationFloatWorkload.hpp:23
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::NeonNormalizationFloatWorkload::ReplaceInputTensorHandle
void ReplaceInputTensorHandle(ITensorHandle *tensorHandle, unsigned int slot) override
Definition: NeonNormalizationFloatWorkload.cpp:113