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 --- ...timizations_1_1_transpose_as_reshape_impl.xhtml | 237 +++++++++++++++++++++ 1 file changed, 237 insertions(+) create mode 100644 20.02/classarmnn_1_1optimizations_1_1_transpose_as_reshape_impl.xhtml (limited to '20.02/classarmnn_1_1optimizations_1_1_transpose_as_reshape_impl.xhtml') diff --git a/20.02/classarmnn_1_1optimizations_1_1_transpose_as_reshape_impl.xhtml b/20.02/classarmnn_1_1optimizations_1_1_transpose_as_reshape_impl.xhtml new file mode 100644 index 0000000000..e6f2df2b84 --- /dev/null +++ b/20.02/classarmnn_1_1optimizations_1_1_transpose_as_reshape_impl.xhtml @@ -0,0 +1,237 @@ + + + + + + + + + + + + + +ArmNN: TransposeAsReshapeImpl Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.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(), OutputHandler::SetTensorInfo(), 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  reshape->GetOutputHandler().SetTensorInfo(outInfo);
29 
30  // Bypass transpose. It will be deleted since it's left unconnected.
31  transpose.GetOutputSlot().MoveAllConnections(reshape->GetOutputSlot());
32  }
33  }
+
+
+
The documentation for this class was generated from the following file: +
+
+ + + + -- cgit v1.2.1