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 "RefResizeBilinearFloat32Workload.hpp" |
| 7 | |
| 8 | #include "RefWorkloadUtils.hpp" |
| 9 | #include "ResizeBilinear.hpp" |
| 10 | |
| 11 | #include "Profiling.hpp" |
| 12 | |
| 13 | namespace armnn |
| 14 | { |
| 15 | |
| 16 | void RefResizeBilinearFloat32Workload::Execute() const |
| 17 | { |
| 18 | ARMNN_SCOPED_PROFILING_EVENT(Compute::CpuRef, "RefResizeBilinearFloat32Workload_Execute"); |
| 19 | |
| 20 | const TensorInfo& inputInfo = GetTensorInfo(m_Data.m_Inputs[0]); |
| 21 | const TensorInfo& outputInfo = GetTensorInfo(m_Data.m_Outputs[0]); |
| 22 | |
| 23 | ResizeBilinear(GetInputTensorDataFloat(0, m_Data), |
| 24 | inputInfo, |
| 25 | GetOutputTensorDataFloat(0, m_Data), |
James Conroy | 5954082 | 2018-10-11 12:39:05 +0100 | [diff] [blame] | 26 | outputInfo, |
| 27 | m_Data.m_Parameters.m_DataLayout); |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 28 | } |
| 29 | |
| 30 | } //namespace armnn |