diff options
author | Jim Flynn <jim.flynn@arm.com> | 2020-03-19 17:03:14 +0000 |
---|---|---|
committer | Jim Flynn <jim.flynn@arm.com> | 2020-03-19 17:03:14 +0000 |
commit | 0e2bab81442ee6cc2b94e4f7881ed0c5c6af65e7 (patch) | |
tree | b0af08b5a0b74149fca422151127ac6310385399 /src/backends/cl/workloads/ClDequantizeWorkload.cpp | |
parent | 8c3259fa007d43fcc5ea56fe6928526dbe79f3c0 (diff) | |
download | armnn-0e2bab81442ee6cc2b94e4f7881ed0c5c6af65e7.tar.gz |
Creating gh-pages documentation for ArmNN
Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'src/backends/cl/workloads/ClDequantizeWorkload.cpp')
-rw-r--r-- | src/backends/cl/workloads/ClDequantizeWorkload.cpp | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/src/backends/cl/workloads/ClDequantizeWorkload.cpp b/src/backends/cl/workloads/ClDequantizeWorkload.cpp deleted file mode 100644 index eca795de7e..0000000000 --- a/src/backends/cl/workloads/ClDequantizeWorkload.cpp +++ /dev/null @@ -1,57 +0,0 @@ -// -// Copyright © 2017 Arm Ltd. All rights reserved. -// SPDX-License-Identifier: MIT -// - -#include "ClDequantizeWorkload.hpp" -#include "ClWorkloadUtils.hpp" - -#include <aclCommon/ArmComputeTensorUtils.hpp> -#include <backendsCommon/CpuTensorHandle.hpp> - -#include <arm_compute/core/Types.h> - -#include <cl/ClLayerSupport.hpp> -#include <cl/ClTensorHandle.hpp> - -#include <boost/polymorphic_pointer_cast.hpp> - -namespace armnn -{ -using namespace armcomputetensorutils; - -arm_compute::Status ClDequantizeWorkloadValidate(const TensorInfo& input, const TensorInfo& output) -{ - const arm_compute::TensorInfo aclInputInfo = BuildArmComputeTensorInfo(input); - const arm_compute::TensorInfo aclOutputInfo = BuildArmComputeTensorInfo(output); - - return arm_compute::CLDequantizationLayer::validate(&aclInputInfo, &aclOutputInfo); -} - -ClDequantizeWorkload::ClDequantizeWorkload(const DequantizeQueueDescriptor& descriptor, - const WorkloadInfo& workloadInfo) - : BaseWorkload<DequantizeQueueDescriptor>(descriptor, workloadInfo) -{ - m_Data.ValidateInputsOutputs("ClDequantizeWorkload", 1, 1); - - arm_compute::ICLTensor& input = boost::polymorphic_pointer_downcast<IClTensorHandle>( - m_Data.m_Inputs[0])->GetTensor(); - - arm_compute::ICLTensor& output = boost::polymorphic_pointer_downcast<IClTensorHandle>( - m_Data.m_Outputs[0])->GetTensor(); - - m_Layer.reset(new arm_compute::CLDequantizationLayer()); - m_Layer->configure(&input, &output); - m_Layer->prepare(); -} - -void ClDequantizeWorkload::Execute() const -{ - if (m_Layer) - { - ARMNN_SCOPED_PROFILING_EVENT_CL("ClDequantizeWorkload_Execute"); - m_Layer->run(); - } -} - -} // namespace armnn |