telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
David Beck | ecb56cd | 2018-09-05 12:52:57 +0100 | [diff] [blame] | 3 | // SPDX-License-Identifier: MIT |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 4 | // |
| 5 | |
| 6 | #include "RefPooling2dFloat32Workload.hpp" |
| 7 | |
| 8 | #include "Pooling2d.hpp" |
| 9 | #include "RefWorkloadUtils.hpp" |
| 10 | |
| 11 | #include "Profiling.hpp" |
| 12 | |
| 13 | namespace armnn |
| 14 | { |
| 15 | |
| 16 | void RefPooling2dFloat32Workload::Execute() const |
| 17 | { |
| 18 | ARMNN_SCOPED_PROFILING_EVENT(Compute::CpuRef, "RefPooling2dFloat32Workload_Execute"); |
| 19 | |
| 20 | const TensorInfo& inputInfo0 = GetTensorInfo(m_Data.m_Inputs[0]); |
| 21 | const TensorInfo& outputInfo0 = GetTensorInfo(m_Data.m_Outputs[0]); |
| 22 | |
| 23 | float* outputData = GetOutputTensorDataFloat(0, m_Data); |
| 24 | const float* inputData = GetInputTensorDataFloat(0, m_Data); |
| 25 | |
| 26 | Pooling2d(inputData, |
| 27 | outputData, |
| 28 | inputInfo0, |
| 29 | outputInfo0, |
| 30 | m_Data.m_Parameters); |
| 31 | } |
| 32 | |
| 33 | } //namespace armnn |