Aron Virginas-Tar | 73f6642 | 2019-09-23 19:11:59 +0100 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2019 Arm Ltd. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #include "RefDepthToSpaceWorkload.hpp" |
| 7 | |
| 8 | #include "DepthToSpace.hpp" |
| 9 | #include "RefWorkloadUtils.hpp" |
| 10 | |
| 11 | namespace armnn |
| 12 | { |
| 13 | |
| 14 | void RefDepthToSpaceWorkload::Execute() const |
| 15 | { |
| 16 | ARMNN_SCOPED_PROFILING_EVENT(Compute::CpuRef, "RefDepthToSpaceWorkload_Execute"); |
| 17 | |
| 18 | const TensorInfo inputInfo = GetTensorInfo(m_Data.m_Inputs[0]); |
| 19 | |
| 20 | DepthToSpace(inputInfo, |
| 21 | m_Data.m_Parameters, |
| 22 | m_Data.m_Inputs[0]->Map(), |
| 23 | m_Data.m_Outputs[0]->Map(), |
| 24 | GetDataTypeSize(inputInfo.GetDataType())); |
| 25 | } |
| 26 | |
| 27 | } // namespace armnn |