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 --- ...lassarmnn_1_1_ref_logical_binary_workload.xhtml | 278 +++++++++++++++++++++ 1 file changed, 278 insertions(+) create mode 100644 21.02/classarmnn_1_1_ref_logical_binary_workload.xhtml (limited to '21.02/classarmnn_1_1_ref_logical_binary_workload.xhtml') diff --git a/21.02/classarmnn_1_1_ref_logical_binary_workload.xhtml b/21.02/classarmnn_1_1_ref_logical_binary_workload.xhtml new file mode 100644 index 0000000000..3808c72ccf --- /dev/null +++ b/21.02/classarmnn_1_1_ref_logical_binary_workload.xhtml @@ -0,0 +1,278 @@ + + + + + + + + + + + + + +ArmNN: RefLogicalBinaryWorkload Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
RefLogicalBinaryWorkload Class Reference
+
+
+ +

#include <RefLogicalBinaryWorkload.hpp>

+
+Inheritance diagram for RefLogicalBinaryWorkload:
+
+
+ + +BaseWorkload< LogicalBinaryQueueDescriptor > +IWorkload + +
+ + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 RefLogicalBinaryWorkload (const LogicalBinaryQueueDescriptor &descriptor, const WorkloadInfo &info)
 
void PostAllocationConfigure () override
 
virtual void Execute () const override
 
- Public Member Functions inherited from BaseWorkload< LogicalBinaryQueueDescriptor >
 BaseWorkload (const LogicalBinaryQueueDescriptor &descriptor, const WorkloadInfo &info)
 
void PostAllocationConfigure () override
 
const LogicalBinaryQueueDescriptorGetData () const
 
profiling::ProfilingGuid GetGuid () const final
 
- Public Member Functions inherited from IWorkload
virtual ~IWorkload ()
 
virtual void RegisterDebugCallback (const DebugCallbackFunction &)
 
+ + + + + + +

+Additional Inherited Members

- Protected Attributes inherited from BaseWorkload< LogicalBinaryQueueDescriptor >
const LogicalBinaryQueueDescriptor m_Data
 
const profiling::ProfilingGuid m_Guid
 
+

Detailed Description

+
+

Definition at line 16 of file RefLogicalBinaryWorkload.hpp.

+

Constructor & Destructor Documentation

+ +

◆ RefLogicalBinaryWorkload()

+ +
+
+ + + + + + + + + + + + + + + + + + +
RefLogicalBinaryWorkload (const LogicalBinaryQueueDescriptordescriptor,
const WorkloadInfoinfo 
)
+
+ +

Definition at line 20 of file RefLogicalBinaryWorkload.cpp.

+
22  : BaseWorkload<LogicalBinaryQueueDescriptor>(desc, info)
23 {}
+
+
+
+

Member Function Documentation

+ +

◆ Execute()

+ +
+
+ + + + + +
+ + + + + + + +
void Execute () const
+
+overridevirtual
+
+ +

Implements IWorkload.

+ +

Definition at line 36 of file RefLogicalBinaryWorkload.cpp.

+ +

References ARMNN_SCOPED_PROFILING_EVENT, CHECK_LOCATION, armnn::CpuRef, armnn::GetLogicalBinaryOperationAsCString(), TensorInfo::GetShape(), armnn::GetTensorInfo(), armnn::LogicalAnd, armnn::LogicalOr, BaseWorkload< LogicalBinaryQueueDescriptor >::m_Data, QueueDescriptor::m_Inputs, LogicalBinaryDescriptor::m_Operation, QueueDescriptor::m_Outputs, and QueueDescriptorWithParameters< LayerDescriptor >::m_Parameters.

+
37 {
38  ARMNN_SCOPED_PROFILING_EVENT(Compute::CpuRef, "RefLogicalBinaryWorkload_Execute");
39 
40  const TensorInfo& inputInfo0 = GetTensorInfo(m_Data.m_Inputs[0]);
41  const TensorInfo& inputInfo1 = GetTensorInfo(m_Data.m_Inputs[1]);
42  const TensorInfo& outputInfo = GetTensorInfo(m_Data.m_Outputs[0]);
43 
44  const TensorShape& inShape0 = inputInfo0.GetShape();
45  const TensorShape& inShape1 = inputInfo1.GetShape();
46  const TensorShape& outShape = outputInfo.GetShape();
47 
48  m_Input0->Reset(m_Data.m_Inputs[0]->Map());
49  m_Input1->Reset(m_Data.m_Inputs[1]->Map());
50  m_Output->Reset(m_Data.m_Outputs[0]->Map());
51 
52  using AndFunction = LogicalBinaryFunction<std::logical_and<bool>>;
53  using OrFunction = LogicalBinaryFunction<std::logical_or<bool>>;
54 
56  {
58  {
59  AndFunction(inShape0, inShape1, outShape, *m_Input0, *m_Input1, *m_Output);
60  break;
61  }
63  {
64  OrFunction(inShape0, inShape1, outShape, *m_Input0, *m_Input1, *m_Output);
65  break;
66  }
67  default:
68  {
69  throw InvalidArgumentException(std::string("Unsupported Logical Binary operation") +
71  }
72  }
73 }
CPU Execution: Reference C++ kernels.
+ +
const LogicalBinaryQueueDescriptor m_Data
Definition: Workload.hpp:46
+ +
LogicalBinaryOperation m_Operation
Specifies the logical operation to execute.
+
#define ARMNN_SCOPED_PROFILING_EVENT(backendId, name)
Definition: Profiling.hpp:173
+
constexpr char const * GetLogicalBinaryOperationAsCString(LogicalBinaryOperation operation)
Definition: TypesUtils.hpp:85
+
#define CHECK_LOCATION()
Definition: Exceptions.hpp:197
+
std::vector< ITensorHandle * > m_Outputs
+ +
std::vector< ITensorHandle * > m_Inputs
+
const TensorInfo & GetTensorInfo(const ITensorHandle *tensorHandle)
float32 helpers
+
+
+
+ +

◆ PostAllocationConfigure()

+ +
+
+ + + + + +
+ + + + + + + +
void PostAllocationConfigure ()
+
+overridevirtual
+
+ +

Implements IWorkload.

+ +

Definition at line 25 of file RefLogicalBinaryWorkload.cpp.

+ +

References armnn::GetTensorInfo(), BaseWorkload< LogicalBinaryQueueDescriptor >::m_Data, QueueDescriptor::m_Inputs, and QueueDescriptor::m_Outputs.

+
26 {
27  const TensorInfo& inputInfo0 = GetTensorInfo(m_Data.m_Inputs[0]);
28  const TensorInfo& inputInfo1 = GetTensorInfo(m_Data.m_Inputs[1]);
29  const TensorInfo& outputInfo = GetTensorInfo(m_Data.m_Outputs[0]);
30 
31  m_Input0 = MakeDecoder<InType>(inputInfo0);
32  m_Input1 = MakeDecoder<InType>(inputInfo1);
33  m_Output = MakeEncoder<OutType>(outputInfo);
34 }
const LogicalBinaryQueueDescriptor m_Data
Definition: Workload.hpp:46
+
std::vector< ITensorHandle * > m_Outputs
+
std::vector< ITensorHandle * > m_Inputs
+
const TensorInfo & GetTensorInfo(const ITensorHandle *tensorHandle)
float32 helpers
+
+
+
+
The documentation for this class was generated from the following files: +
+
+ + + + -- cgit v1.2.1