From a983e4699082a0b1ef685bab7354f2ad9cd37a44 Mon Sep 17 00:00:00 2001 From: Colm Donelan Date: Wed, 20 May 2020 16:12:19 +0100 Subject: Updating Doxygen documentation for 20.05 release. Change-Id: I4d624343ed5fd6ae269c3d53532903084508fd14 Signed-off-by: Colm Donelan --- ...optimizations_1_1_permute_as_reshape_impl.xhtml | 237 +++++++++++++++++++++ 1 file changed, 237 insertions(+) create mode 100644 20.05/classarmnn_1_1optimizations_1_1_permute_as_reshape_impl.xhtml (limited to '20.05/classarmnn_1_1optimizations_1_1_permute_as_reshape_impl.xhtml') diff --git a/20.05/classarmnn_1_1optimizations_1_1_permute_as_reshape_impl.xhtml b/20.05/classarmnn_1_1optimizations_1_1_permute_as_reshape_impl.xhtml new file mode 100644 index 0000000000..07b152cb44 --- /dev/null +++ b/20.05/classarmnn_1_1optimizations_1_1_permute_as_reshape_impl.xhtml @@ -0,0 +1,237 @@ + + + + + + + + + + + + + +ArmNN: PermuteAsReshapeImpl Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.05 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
PermuteAsReshapeImpl Class Reference
+
+
+ +

#include <PermuteAsReshape.hpp>

+ + + + + +

+Public Member Functions

void Run (Graph &graph, PermuteLayer &permute) const
 Run for every PermuteLayer. Replaces it with a ReshapeLayer if they are equivalent. More...
 
+ + + + + +

+Protected Member Functions

 PermuteAsReshapeImpl ()=default
 
 ~PermuteAsReshapeImpl ()=default
 
+

Detailed Description

+
+

Definition at line 14 of file PermuteAsReshape.hpp.

+

Constructor & Destructor Documentation

+ +

◆ PermuteAsReshapeImpl()

+ +
+
+ + + + + +
+ + + + + + + +
PermuteAsReshapeImpl ()
+
+protecteddefault
+
+ +

Referenced by PermuteAsReshapeImpl::Run().

+ +
+
+ +

◆ ~PermuteAsReshapeImpl()

+ +
+
+ + + + + +
+ + + + + + + +
~PermuteAsReshapeImpl ()
+
+protecteddefault
+
+ +

Referenced by PermuteAsReshapeImpl::Run().

+ +
+
+

Member Function Documentation

+ +

◆ Run()

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

Run for every PermuteLayer. Replaces it with a ReshapeLayer if they are equivalent.

+ +

Definition at line 18 of file PermuteAsReshape.hpp.

+ +

References Layer::GetInputSlot(), Layer::GetName(), Layer::GetOutputHandler(), Layer::GetOutputSlot(), PermuteLayer::GetPermutation(), TensorInfo::GetShape(), PermutationVector::GetSize(), OutputHandler::GetTensorInfo(), Graph::InsertNewLayer(), OutputSlot::MoveAllConnections(), PermuteAsReshapeImpl::PermuteAsReshapeImpl(), and PermuteAsReshapeImpl::~PermuteAsReshapeImpl().

+
19  {
20  if (IsReshape(permute))
21  {
22  const TensorInfo& outInfo = permute.GetOutputHandler().GetTensorInfo();
23 
24  const std::string name = std::string("as_reshape-") + permute.GetName();
25  const ReshapeDescriptor descriptor{outInfo.GetShape()};
26  // Inserts NewLayer so layers don't need to be re-sorted.
27  auto reshape = graph.InsertNewLayer<ReshapeLayer>(permute.GetInputSlot(0), descriptor, name.c_str());
28 
29  // Bypass permute. It will be deleted since it's left unconnected.
30  permute.GetOutputSlot().MoveAllConnections(reshape->GetOutputSlot());
31  }
32  }
+
+
+
The documentation for this class was generated from the following file: +
+
+ + + + -- cgit v1.2.1