From 6f92c8e9f8bb38dcf5dccf8deeff5112ecd8e37c Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Wed, 22 Nov 2023 11:41:15 +0000 Subject: Update Doxygen for 23.11 Signed-off-by: Nikhil Raj Change-Id: I47cd933f5002cb94a73aa97689d7b3d9c93cb849 --- 23.11/_cl_cast_workload_8cpp_source.html | 183 +++++++++++++++++++++++++++++++ 1 file changed, 183 insertions(+) create mode 100644 23.11/_cl_cast_workload_8cpp_source.html (limited to '23.11/_cl_cast_workload_8cpp_source.html') diff --git a/23.11/_cl_cast_workload_8cpp_source.html b/23.11/_cl_cast_workload_8cpp_source.html new file mode 100644 index 0000000000..64ceb4170c --- /dev/null +++ b/23.11/_cl_cast_workload_8cpp_source.html @@ -0,0 +1,183 @@ + + + + + + + + +Arm NN: src/backends/cl/workloads/ClCastWorkload.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  23.11 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
ClCastWorkload.cpp
+
+
+Go to the documentation of this file.
1 //
+
2 // Copyright © 2021-2023 Arm Ltd and Contributors. All rights reserved.
+
3 // SPDX-License-Identifier: MIT
+
4 //
+
5 
+
6 #include "ClCastWorkload.hpp"
+
7 #include "ClWorkloadUtils.hpp"
+
8 
+ +
10 
+ +
12 
+
13 #include <cl/ClTensorHandle.hpp>
+
14 
+
15 namespace armnn
+
16 {
+
17 
+
18 static constexpr arm_compute::ConvertPolicy g_AclConvertPolicy = arm_compute::ConvertPolicy::SATURATE;
+
19 
+ +
21 {
+
22  const arm_compute::TensorInfo aclInput = armcomputetensorutils::BuildArmComputeTensorInfo(input);
+
23  const arm_compute::TensorInfo aclOutput = armcomputetensorutils::BuildArmComputeTensorInfo(output);
+
24 
+
25  return arm_compute::CLCast::validate(&aclInput, &aclOutput, g_AclConvertPolicy);
+
26 }
+
27 
+ +
29  const WorkloadInfo& info,
+
30  const arm_compute::CLCompileContext& clCompileContext)
+ +
32 {
+
33  m_Data.ValidateInputsOutputs("ClCastWorkload", 1, 1);
+
34 
+
35  arm_compute::ICLTensor& input = PolymorphicDowncast<ClTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
+
36  arm_compute::ICLTensor& output = PolymorphicDowncast<ClTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
+
37 
+
38  {
+
39  ARMNN_SCOPED_PROFILING_EVENT_CL_NAME_GUID("ClCastWorkload_configure");
+
40  m_CastLayer.configure(clCompileContext, &input, &output, g_AclConvertPolicy);
+
41  }
+
42 }
+
43 
+ +
45 {
+
46  ARMNN_SCOPED_PROFILING_EVENT_CL_NAME_GUID("ClCastWorkload_Execute");
+
47  RunClFunction(m_CastLayer, CHECK_LOCATION());
+
48 }
+
49 
+
50 } // namespace armnn
+
+
+
void RunClFunction(arm_compute::IFunction &function, const CheckLocation &location)
+
virtual void Execute() const override
+
arm_compute::Status ClCastValidate(const TensorInfo &input, const TensorInfo &output)
+
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
+ +
#define CHECK_LOCATION()
Definition: Exceptions.hpp:203
+ + +
ClCastWorkload(const CastQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
+
#define ARMNN_SCOPED_PROFILING_EVENT_CL_NAME_GUID(label)
Creates a profiling event that uses GetGuid() and GetName() from the calling class.
+
Contains information about TensorInfos of a layer.
+ + + +
std::vector< ITensorHandle * > m_Outputs
+ +
Status
Definition: Types.hpp:42
+ + +
Copyright (c) 2021 ARM Limited and Contributors.
+ +
std::vector< ITensorHandle * > m_Inputs
+ + + + -- cgit v1.2.1