Keith Davis | a57eccb | 2019-06-14 17:33:22 +0100 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #include "RefSpaceToDepthWorkload.hpp" |
| 7 | #include "SpaceToDepth.hpp" |
| 8 | |
| 9 | #include "RefWorkloadUtils.hpp" |
| 10 | #include <ResolveType.hpp> |
| 11 | |
| 12 | namespace armnn |
| 13 | { |
| 14 | |
| 15 | void RefSpaceToDepthWorkload::Execute() const |
| 16 | { |
| 17 | ARMNN_SCOPED_PROFILING_EVENT(Compute::CpuRef, "RefSpaceToDepthWorkload_Execute"); |
| 18 | |
| 19 | const TensorInfo& inputInfo = GetTensorInfo(m_Data.m_Inputs[0]); |
| 20 | std::unique_ptr<Decoder<float>> decoder = MakeDecoder<float>(inputInfo, m_Data.m_Inputs[0]->Map()); |
| 21 | |
| 22 | const TensorInfo& outputInfo = GetTensorInfo(m_Data.m_Outputs[0]); |
| 23 | std::unique_ptr<Encoder<float>> encoder = MakeEncoder<float>(outputInfo, m_Data.m_Outputs[0]->Map()); |
| 24 | |
| 25 | SpaceToDepth(inputInfo, outputInfo, m_Data.m_Parameters, *decoder, *encoder); |
| 26 | } |
| 27 | |
| 28 | } //namespace armnn |