From 9aed8fb43441228343b925b42464a55042c47ca0 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Wed, 17 Nov 2021 13:16:45 +0000 Subject: IVGCVSW-6040 Update 21.11 Doxygen Documents Signed-off-by: Nikhil Raj Change-Id: Ia36ec98c4bebc27a69103911ea3409cd7db587a5 --- ...ons_1_1_optimize_inverse_conversions_impl.xhtml | 243 +++++++++++++++++++++ 1 file changed, 243 insertions(+) create mode 100644 21.11/classarmnn_1_1optimizations_1_1_optimize_inverse_conversions_impl.xhtml (limited to '21.11/classarmnn_1_1optimizations_1_1_optimize_inverse_conversions_impl.xhtml') diff --git a/21.11/classarmnn_1_1optimizations_1_1_optimize_inverse_conversions_impl.xhtml b/21.11/classarmnn_1_1optimizations_1_1_optimize_inverse_conversions_impl.xhtml new file mode 100644 index 0000000000..e7e8c72db9 --- /dev/null +++ b/21.11/classarmnn_1_1optimizations_1_1_optimize_inverse_conversions_impl.xhtml @@ -0,0 +1,243 @@ + + + + + + + + + + + + + +ArmNN: OptimizeInverseConversionsImpl Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.11 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
OptimizeInverseConversionsImpl Class Reference
+
+
+ +

#include <OptimizeInverseConversions.hpp>

+ + + + + +

+Public Member Functions

void Run (Graph &graph, InputSlot &connection) const
 Run for every connection between two inverse data type conversion layers, i.e. More...
 
+ + + + + +

+Protected Member Functions

 OptimizeInverseConversionsImpl ()=default
 
 ~OptimizeInverseConversionsImpl ()=default
 
+

Detailed Description

+
+

Definition at line 16 of file OptimizeInverseConversions.hpp.

+

Constructor & Destructor Documentation

+ +

◆ OptimizeInverseConversionsImpl()

+ +
+
+ + + + + +
+ + + + + + + +
OptimizeInverseConversionsImpl ()
+
+protecteddefault
+
+
+ +

◆ ~OptimizeInverseConversionsImpl()

+ +
+
+ + + + + +
+ + + + + + + +
~OptimizeInverseConversionsImpl ()
+
+protecteddefault
+
+
+

Member Function Documentation

+ +

◆ Run()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
void Run (Graphgraph,
InputSlotconnection 
) const
+
+inline
+
+ +

Run for every connection between two inverse data type conversion layers, i.e.

+

Fp16ToFp32 followed by Fp32ToFp16 or vice-versa.

+ +

Definition at line 21 of file OptimizeInverseConversions.hpp.

+ +

References ARMNN_ASSERT, armnn::ConvertFp16ToFp32, armnn::ConvertFp32ToFp16, InputSlot::GetConnectedOutputSlot(), Layer::GetInputSlot(), Layer::GetOutputSlot(), InputSlot::GetOwningLayer(), OutputSlot::GetOwningLayer(), Layer::GetType(), armnn::IgnoreUnused(), OutputSlot::MoveAllConnections(), OptimizeInverseConversionsImpl::OptimizeInverseConversionsImpl(), and OptimizeInverseConversionsImpl::~OptimizeInverseConversionsImpl().

+
22  {
23  IgnoreUnused(graph);
24  Layer& base = connection.GetConnectedOutputSlot()->GetOwningLayer();
25  Layer& child = connection.GetOwningLayer();
26 
27  ARMNN_ASSERT((base.GetType() == LayerType::ConvertFp16ToFp32 &&
28  child.GetType() == LayerType::ConvertFp32ToFp16) ||
29  (base.GetType() == LayerType::ConvertFp32ToFp16 &&
30  child.GetType() == LayerType::ConvertFp16ToFp32));
31 
32  // Bypass both conversion layers
33  child.GetOutputSlot().MoveAllConnections(*base.GetInputSlot(0).GetConnectedOutputSlot());
34  }
+ +
void IgnoreUnused(Ts &&...)
+ +
#define ARMNN_ASSERT(COND)
Definition: Assert.hpp:14
+
+
+
+
The documentation for this class was generated from the following file: +
+
+ + + + -- cgit v1.2.1