From 0e2bab81442ee6cc2b94e4f7881ed0c5c6af65e7 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Thu, 19 Mar 2020 17:03:14 +0000 Subject: Creating gh-pages documentation for ArmNN Signed-off-by: Jim Flynn --- ...optimizations_1_1_permute_as_reshape_impl.xhtml | 237 +++++++++++++++++++++ 1 file changed, 237 insertions(+) create mode 100644 Documentation/classarmnn_1_1optimizations_1_1_permute_as_reshape_impl.xhtml (limited to 'Documentation/classarmnn_1_1optimizations_1_1_permute_as_reshape_impl.xhtml') diff --git a/Documentation/classarmnn_1_1optimizations_1_1_permute_as_reshape_impl.xhtml b/Documentation/classarmnn_1_1optimizations_1_1_permute_as_reshape_impl.xhtml new file mode 100644 index 0000000000..dee180fefe --- /dev/null +++ b/Documentation/classarmnn_1_1optimizations_1_1_permute_as_reshape_impl.xhtml @@ -0,0 +1,237 @@ + + + + + + + + + + + + + +ArmNN: PermuteAsReshapeImpl Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
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(), OutputHandler::SetTensorInfo(), 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  reshape->GetOutputHandler().SetTensorInfo(outInfo);
29 
30  // Bypass permute. It will be deleted since it's left unconnected.
31  permute.GetOutputSlot().MoveAllConnections(reshape->GetOutputSlot());
32  }
33  }
+
+
+
The documentation for this class was generated from the following file: +
+
+ + + + -- cgit v1.2.1