// // Copyright © 2017 Arm Ltd. All rights reserved. // See LICENSE file in the project root for full license information. // #pragma once #include "Workload.hpp" #include #include #include #include "ArmComputeTensorUtils.hpp" namespace armnn { template void CopyArmComputeClTensorData(const T* srcData, arm_compute::CLTensor& dstTensor) { { ARMNN_SCOPED_PROFILING_EVENT(Compute::GpuAcc, "MapClTensorForWriting"); dstTensor.map(true); } { ARMNN_SCOPED_PROFILING_EVENT(Compute::GpuAcc, "CopyToClTensor"); armcomputetensorutils::CopyArmComputeITensorData(srcData, dstTensor); } dstTensor.unmap(); } template void InitialiseArmComputeClTensorData(arm_compute::CLTensor& clTensor, const T* data) { armcomputetensorutils::InitialiseArmComputeTensorEmpty(clTensor); CopyArmComputeClTensorData(data, clTensor); } } //namespace armnn