blob: d3e8e0a120663dea533dfa501b32794d8bd10788 [file] [log] [blame]
telsoa014fcda012018-03-09 14:13:49 +00001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
David Beckecb56cd2018-09-05 12:52:57 +01003// SPDX-License-Identifier: MIT
telsoa014fcda012018-03-09 14:13:49 +00004//
5
6#pragma once
7
8#include "backends/Workload.hpp"
9#include "backends/WorkloadData.hpp"
10
11namespace armnn
12{
13
14class RefBatchNormalizationUint8Workload : public Uint8Workload<BatchNormalizationQueueDescriptor>
15{
16public:
telsoa01c577f2c2018-08-31 09:22:23 +010017 explicit RefBatchNormalizationUint8Workload(const BatchNormalizationQueueDescriptor& descriptor,
18 const WorkloadInfo& info);
telsoa014fcda012018-03-09 14:13:49 +000019 virtual void Execute() const override;
telsoa01c577f2c2018-08-31 09:22:23 +010020
21private:
22 std::unique_ptr<ScopedCpuTensorHandle> m_Mean;
23 std::unique_ptr<ScopedCpuTensorHandle> m_Variance;
24 std::unique_ptr<ScopedCpuTensorHandle> m_Beta;
25 std::unique_ptr<ScopedCpuTensorHandle> m_Gamma;
telsoa014fcda012018-03-09 14:13:49 +000026};
27
28} //namespace armnn