// // Copyright © 2017 Arm Ltd. All rights reserved. // SPDX-License-Identifier: MIT // #include "RefPermuteWorkload.hpp" #include "RefWorkloadUtils.hpp" #include #include "TypeUtils.hpp" namespace armnn { template void RefPermuteWorkload::Execute() const { using T = ResolveType; ARMNN_SCOPED_PROFILING_EVENT(Compute::CpuRef, GetName() + "_Execute"); const ITensorHandle* src = m_Data.m_Inputs[0]; const ITensorHandle* dst = m_Data.m_Outputs[0]; const PermutationVector& mappings = m_Data.m_Parameters.m_DimMappings; armnnUtils::Permute(GetTensorInfo(dst).GetShape(), mappings, GetConstCpuData(src), GetCpuData(dst)); } template class RefPermuteWorkload; template class RefPermuteWorkload; template class RefPermuteWorkload; } //namespace armnn