ArmNN
 25.02
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RefDepthToSpaceWorkload.cpp
Go to the documentation of this file.
1 //
2 // Copyright © 2019,2021-2024 Arm Ltd and Contributors. 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 {
17 }
18 
19 void RefDepthToSpaceWorkload::Execute(std::vector<ITensorHandle*> inputs, std::vector<ITensorHandle*> outputs) const
20 {
21  ARMNN_SCOPED_PROFILING_EVENT_REF_NAME_GUID("RefDepthToSpaceWorkload_Execute");
22  const TensorInfo inputInfo = GetTensorInfo(inputs[0]);
23 
24  DepthToSpace(inputInfo,
25  m_Data.m_Parameters,
26  inputs[0]->Map(),
27  outputs[0]->Map(),
28  GetDataTypeSize(inputInfo.GetDataType()));
29 }
30 
31 } // namespace armnn
#define ARMNN_SCOPED_PROFILING_EVENT_REF_NAME_GUID(label)
Creates a profiling event that uses GetGuid() and GetName() from the calling class.
QueueDescriptor m_Data
Definition: Workload.hpp:74
DataType GetDataType() const
Definition: Tensor.hpp:200
Copyright (c) 2021 ARM Limited and Contributors.
constexpr unsigned int GetDataTypeSize(DataType dataType)
Definition: TypesUtils.hpp:183
const TensorInfo & GetTensorInfo(const ITensorHandle *tensorHandle)
float32 helpers
void DepthToSpace(const TensorInfo &inputInfo, const DepthToSpaceDescriptor &descriptor, const void *inputData, void *outputData, unsigned int dataTypeSize)
std::vector< ITensorHandle * > m_Inputs
std::vector< ITensorHandle * > m_Outputs