From 6940dd720ebb6b3d1df8ca203ab696daefe58189 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Fri, 20 Mar 2020 12:25:56 +0000 Subject: renamed Documentation folder 20.02 and added .nojekyll file Signed-off-by: Jim Flynn --- ...ations_1_1_optimize_inverse_permutes_impl.xhtml | 242 +++++++++++++++++++++ 1 file changed, 242 insertions(+) create mode 100644 20.02/classarmnn_1_1optimizations_1_1_optimize_inverse_permutes_impl.xhtml (limited to '20.02/classarmnn_1_1optimizations_1_1_optimize_inverse_permutes_impl.xhtml') diff --git a/20.02/classarmnn_1_1optimizations_1_1_optimize_inverse_permutes_impl.xhtml b/20.02/classarmnn_1_1optimizations_1_1_optimize_inverse_permutes_impl.xhtml new file mode 100644 index 0000000000..528b01d9c2 --- /dev/null +++ b/20.02/classarmnn_1_1optimizations_1_1_optimize_inverse_permutes_impl.xhtml @@ -0,0 +1,242 @@ + + + + + + + + + + + + + +ArmNN: OptimizeInversePermutesImpl< PermuteType > Class Template Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
OptimizeInversePermutesImpl< PermuteType > Class Template Reference
+
+
+ +

#include <OptimizeInversePermutes.hpp>

+ + + + + +

+Public Member Functions

void Run (Graph &graph, InputSlot &connection) const
 Run for every connection between a base PermuteLayer and a child PermuteLayer. More...
 
+ + + + + +

+Protected Member Functions

 OptimizeInversePermutesImpl ()=default
 
 ~OptimizeInversePermutesImpl ()=default
 
+

Detailed Description

+

template<typename PermuteType>
+class armnn::optimizations::OptimizeInversePermutesImpl< PermuteType >

+ + +

Definition at line 17 of file OptimizeInversePermutes.hpp.

+

Constructor & Destructor Documentation

+ +

◆ OptimizeInversePermutesImpl()

+ +
+
+ + + + + +
+ + + + + + + +
OptimizeInversePermutesImpl ()
+
+protecteddefault
+
+
+ +

◆ ~OptimizeInversePermutesImpl()

+ +
+
+ + + + + +
+ + + + + + + +
~OptimizeInversePermutesImpl ()
+
+protecteddefault
+
+
+

Member Function Documentation

+ +

◆ Run()

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

Run for every connection between a base PermuteLayer and a child PermuteLayer.

+

Bypasses both layers for that connection if one is the inverse of the other.

+ +

Definition at line 22 of file OptimizeInversePermutes.hpp.

+ +

References InputSlot::GetConnectedOutputSlot(), Layer::GetInputSlot(), Layer::GetOutputSlot(), InputSlot::GetOwningLayer(), OutputSlot::GetOwningLayer(), armnn::IgnoreUnused(), OutputSlot::MoveAllConnections(), OptimizeInversePermutesImpl< PermuteType >::OptimizeInversePermutesImpl(), and OptimizeInversePermutesImpl< PermuteType >::~OptimizeInversePermutesImpl().

+
23  {
24  IgnoreUnused(graph);
25  Layer& base = connection.GetConnectedOutputSlot()->GetOwningLayer();
26  auto child = boost::polymorphic_downcast<PermuteType*>(&connection.GetOwningLayer());
27 
28  if (child->IsInverse(*boost::polymorphic_downcast<PermuteType*>(&base)))
29  {
30  // Bypass both layers. Child will be removed as it's left unconnected.
31  // Base layer will be removed if left unconnected.
32  child->GetOutputSlot().MoveAllConnections(*base.GetInputSlot(0).GetConnectedOutputSlot());
33  }
34  }
void IgnoreUnused(Ts &&...)
+
+
+
+
The documentation for this class was generated from the following file: +
+
+ + + + -- cgit v1.2.1