ArmNN
 24.02
RefBatchNormalizationWorkload.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2022 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
8 #include "RefBaseWorkload.hpp"
10 
11 namespace armnn
12 {
13 
14 class RefBatchNormalizationWorkload : public RefBaseWorkload<BatchNormalizationQueueDescriptor>
15 {
16 public:
18  const WorkloadInfo& info);
19  void Execute() const override;
20  void ExecuteAsync(ExecutionData& executionData) override;
21 
22 private:
23  void Execute(std::vector<ITensorHandle*> inputs, std::vector<ITensorHandle*> outputs) const;
24  std::unique_ptr<ScopedTensorHandle> m_Mean;
25  std::unique_ptr<ScopedTensorHandle> m_Variance;
26  std::unique_ptr<ScopedTensorHandle> m_Beta;
27  std::unique_ptr<ScopedTensorHandle> m_Gamma;
28 };
29 
30 } //namespace armnn
armnn::BatchNormalizationQueueDescriptor
Definition: WorkloadData.hpp:311
WorkloadData.hpp
armnn::RefBatchNormalizationWorkload
Definition: RefBatchNormalizationWorkload.hpp:14
armnn::WorkloadInfo
Contains information about TensorInfos of a layer.
Definition: WorkloadInfo.hpp:16
armnn::BoostLogSeverityMapping::info
@ info
armnn::RefBatchNormalizationWorkload::ExecuteAsync
void ExecuteAsync(ExecutionData &executionData) override
Definition: RefBatchNormalizationWorkload.cpp:30
armnn::RefBatchNormalizationWorkload::RefBatchNormalizationWorkload
RefBatchNormalizationWorkload(const BatchNormalizationQueueDescriptor &descriptor, const WorkloadInfo &info)
Definition: RefBatchNormalizationWorkload.cpp:16
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition: 01_00_quick_start.dox:6
RefBaseWorkload.hpp
armnn::RefBatchNormalizationWorkload::Execute
void Execute() const override
Definition: RefBatchNormalizationWorkload.cpp:25
armnn::RefBaseWorkload
Definition: RefBaseWorkload.hpp:13
armnn::experimental::ExecutionData
Definition: ExecutionData.hpp:14