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 --- ...timizations_1_1_transpose_as_reshape_impl.xhtml | 237 +++++++++++++++++++++ 1 file changed, 237 insertions(+) create mode 100644 21.02/classarmnn_1_1optimizations_1_1_transpose_as_reshape_impl.xhtml (limited to '21.02/classarmnn_1_1optimizations_1_1_transpose_as_reshape_impl.xhtml') diff --git a/21.02/classarmnn_1_1optimizations_1_1_transpose_as_reshape_impl.xhtml b/21.02/classarmnn_1_1optimizations_1_1_transpose_as_reshape_impl.xhtml new file mode 100644 index 0000000000..d07bc9c274 --- /dev/null +++ b/21.02/classarmnn_1_1optimizations_1_1_transpose_as_reshape_impl.xhtml @@ -0,0 +1,237 @@ + + + + + + + + + + + + + +ArmNN: TransposeAsReshapeImpl Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TransposeAsReshapeImpl Class Reference
+
+
+ +

#include <TransposeAsReshape.hpp>

+ + + + + +

+Public Member Functions

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

+Protected Member Functions

 TransposeAsReshapeImpl ()=default
 
 ~TransposeAsReshapeImpl ()=default
 
+

Detailed Description

+
+

Definition at line 14 of file TransposeAsReshape.hpp.

+

Constructor & Destructor Documentation

+ +

◆ TransposeAsReshapeImpl()

+ +
+
+ + + + + +
+ + + + + + + +
TransposeAsReshapeImpl ()
+
+protecteddefault
+
+ +

Referenced by TransposeAsReshapeImpl::Run().

+ +
+
+ +

◆ ~TransposeAsReshapeImpl()

+ +
+
+ + + + + +
+ + + + + + + +
~TransposeAsReshapeImpl ()
+
+protecteddefault
+
+ +

Referenced by TransposeAsReshapeImpl::Run().

+ +
+
+

Member Function Documentation

+ +

◆ Run()

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

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

+ +

Definition at line 18 of file TransposeAsReshape.hpp.

+ +

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

+
19  {
20  if (IsReshape(transpose))
21  {
22  const TensorInfo& outInfo = transpose.GetOutputHandler().GetTensorInfo();
23 
24  const std::string name = std::string("as_reshape-") + transpose.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>(transpose.GetInputSlot(0), descriptor, name.c_str());
28 
29  // Bypass transpose. It will be deleted since it's left unconnected.
30  transpose.GetOutputSlot().MoveAllConnections(reshape->GetOutputSlot());
31  }
32  }
+
+
+
The documentation for this class was generated from the following file: +
+
+ + + + -- cgit v1.2.1