From fd627ffaec8fd8801d980b4c91ee7c0607ab6aaf Mon Sep 17 00:00:00 2001 From: Jan Eilers Date: Thu, 25 Feb 2021 17:44:00 +0000 Subject: IVGCVSW-5687 Update Doxygen Docu * Update Doxygen Documentation for 21.02 release Signed-off-by: Jan Eilers Change-Id: I9ed2f9caab038836ea99d7b378d7899fe431a4e5 --- .../_ref_logical_unary_workload_8cpp_source.xhtml | 143 +++++++++++++++++++++ 1 file changed, 143 insertions(+) create mode 100644 21.02/_ref_logical_unary_workload_8cpp_source.xhtml (limited to '21.02/_ref_logical_unary_workload_8cpp_source.xhtml') diff --git a/21.02/_ref_logical_unary_workload_8cpp_source.xhtml b/21.02/_ref_logical_unary_workload_8cpp_source.xhtml new file mode 100644 index 0000000000..752a8cf0ad --- /dev/null +++ b/21.02/_ref_logical_unary_workload_8cpp_source.xhtml @@ -0,0 +1,143 @@ + + + + + + + + + + + + + +ArmNN: src/backends/reference/workloads/RefLogicalUnaryWorkload.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
RefLogicalUnaryWorkload.cpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
7 
8 #include "Decoders.hpp"
10 #include "Encoders.hpp"
11 #include "RefWorkloadUtils.hpp"
12 
13 #include <Profiling.hpp>
14 
15 #include <armnn/TypesUtils.hpp>
16 
17 namespace armnn
18 {
19 
21  const WorkloadInfo& info)
23 {}
24 
26 {
27  const TensorInfo& inputInfo = GetTensorInfo(m_Data.m_Inputs[0]);
28  const TensorInfo& outputInfo = GetTensorInfo(m_Data.m_Outputs[0]);
29 
30  m_Input = MakeDecoder<InType>(inputInfo);
31  m_Output = MakeEncoder<OutType>(outputInfo);
32 }
33 
35 {
36  ARMNN_SCOPED_PROFILING_EVENT(Compute::CpuRef, "RefLogicalUnaryWorkload_Execute");
37 
38  const TensorInfo& inputInfo = GetTensorInfo(m_Data.m_Inputs[0]);
39  const TensorInfo& outputInfo = GetTensorInfo(m_Data.m_Outputs[0]);
40 
41  const TensorShape& inShape = inputInfo.GetShape();
42  const TensorShape& outShape = outputInfo.GetShape();
43 
44  m_Input->Reset(m_Data.m_Inputs[0]->Map());
45  m_Output->Reset(m_Data.m_Outputs[0]->Map());
46 
48 
50  {
52  {
53  NotFunction(inShape, outShape, *m_Input, *m_Output);
54  break;
55  }
56  default:
57  {
58  throw InvalidArgumentException(std::string("Unsupported Logical Unary operation") +
60  }
61  }
62 }
63 
64 } // namespace armnn
+
virtual void Execute() const override
+
UnaryOperation m_Operation
Specifies the elementwiseUnary operation to execute.
+
const TensorShape & GetShape() const
Definition: Tensor.hpp:187
+
CPU Execution: Reference C++ kernels.
+ + + +
const ElementwiseUnaryQueueDescriptor m_Data
Definition: Workload.hpp:46
+
Copyright (c) 2021 ARM Limited and Contributors.
+ + +
#define ARMNN_SCOPED_PROFILING_EVENT(backendId, name)
Definition: Profiling.hpp:173
+ + +
constexpr char const * GetUnaryOperationAsCString(UnaryOperation operation)
Definition: TypesUtils.hpp:71
+ + + +
RefLogicalUnaryWorkload(const ElementwiseUnaryQueueDescriptor &descriptor, const WorkloadInfo &info)
+ + +
#define CHECK_LOCATION()
Definition: Exceptions.hpp:197
+
std::vector< ITensorHandle * > m_Outputs
+
Contains information about inputs and outputs to a layer.
+
std::vector< ITensorHandle * > m_Inputs
+
const TensorInfo & GetTensorInfo(const ITensorHandle *tensorHandle)
float32 helpers
+ + + +
+
+ + + + -- cgit v1.2.1