ArmNN
 20.11
RefDepthToSpaceWorkload.cpp
Go to the documentation of this file.
1 //
2 // Copyright © 2019 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
7 
8 #include "DepthToSpace.hpp"
9 #include "RefWorkloadUtils.hpp"
10 
11 namespace armnn
12 {
13 
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,
22  m_Data.m_Inputs[0]->Map(),
23  m_Data.m_Outputs[0]->Map(),
24  GetDataTypeSize(inputInfo.GetDataType()));
25 }
26 
27 } // namespace armnn
virtual void Execute() const override
CPU Execution: Reference C++ kernels.
const DepthToSpaceQueueDescriptor m_Data
Definition: Workload.hpp:46
Copyright (c) 2020 ARM Limited.
#define ARMNN_SCOPED_PROFILING_EVENT(backendId, name)
Definition: Profiling.hpp:175
DataType GetDataType() const
Definition: Tensor.hpp:194
std::vector< ITensorHandle * > m_Outputs
std::vector< ITensorHandle * > m_Inputs
const TensorInfo & GetTensorInfo(const ITensorHandle *tensorHandle)
float32 helpers
constexpr unsigned int GetDataTypeSize(DataType dataType)
Definition: TypesUtils.hpp:126