From f4019872c1134c6fcc1d6993e5746f55c1e79208 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Tue, 8 Mar 2022 20:01:38 +0000 Subject: IVGCVSW-6819 Fix the directory structure and broken link to latest docu Signed-off-by: Nikhil Raj Change-Id: I05b559d15faf92c76ff536719693b361316be4f3 --- ..._1_1_layer_in_graph_3_01_input_layer_01_4.xhtml | 263 +++++++++++++++++++++ 1 file changed, 263 insertions(+) create mode 100644 22.02/classarmnn_1_1_graph_1_1_layer_in_graph_3_01_input_layer_01_4.xhtml (limited to '22.02/classarmnn_1_1_graph_1_1_layer_in_graph_3_01_input_layer_01_4.xhtml') diff --git a/22.02/classarmnn_1_1_graph_1_1_layer_in_graph_3_01_input_layer_01_4.xhtml b/22.02/classarmnn_1_1_graph_1_1_layer_in_graph_3_01_input_layer_01_4.xhtml new file mode 100644 index 0000000000..85cc9af788 --- /dev/null +++ b/22.02/classarmnn_1_1_graph_1_1_layer_in_graph_3_01_input_layer_01_4.xhtml @@ -0,0 +1,263 @@ + + + + + + + + + + + + + +ArmNN: Graph::LayerInGraph< InputLayer > Class Template Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  22.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
Graph::LayerInGraph< InputLayer > Class Template Referencefinal
+
+
+ +

Inputs add/remove their binding id to m_InputIds in the graph. + More...

+ +

#include <Graph.hpp>

+ +

Inherits Graph::LayerInGraphBase< LayerT >.

+ + + + + + + + + + +

+Public Member Functions

template<typename... Args>
 LayerInGraph (Graph &graph, Args &&... args)
 
template<typename... Args>
 LayerInGraph (Graph &graph, Iterator, Args &&... args)
 
 ~LayerInGraph () override
 
+

Detailed Description

+

template<>
+class armnn::Graph::LayerInGraph< InputLayer >

+ +

Inputs add/remove their binding id to m_InputIds in the graph.

+ +

Definition at line 356 of file Graph.hpp.

+

Constructor & Destructor Documentation

+ +

◆ LayerInGraph() [1/2]

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
LayerInGraph (Graphgraph,
Args &&... args 
)
+
+inline
+
+ +

Definition at line 360 of file Graph.hpp.

+ +

References Graph::InputLayersAccessor::m_Graph.

+
361  : LayerInGraphBase<InputLayer>(graph,
362  // Always add to the back of the inputs.
363  std::next(graph.begin(), IteratorDifference(graph.GetNumInputs())),
364  std::forward<Args>(args)...)
365  {
366  const bool isNewId = m_Graph->m_InputIds.emplace(GetBindingId()).second;
367  if (!isNewId)
368  {
369  throw InvalidArgumentException("A layer already exists with the specified id");
370  }
371  }
Iterator::difference_type IteratorDifference
Definition: Graph.hpp:54
+
+
+
+ +

◆ LayerInGraph() [2/2]

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerInGraph (Graphgraph,
Iterator ,
Args &&... args 
)
+
+inline
+
+ +

Definition at line 373 of file Graph.hpp.

+
375  : LayerInGraph(graph, std::forward<Args>(args)...)
376  {
377  }
LayerInGraph(Graph &graph, Args &&... args)
Definition: Graph.hpp:360
+
+
+
+ +

◆ ~LayerInGraph()

+ +
+
+ + + + + +
+ + + + + + + +
~LayerInGraph ()
+
+inlineoverride
+
+ +

Definition at line 378 of file Graph.hpp.

+ +

References ARMNN_ASSERT, armnn::IgnoreUnused(), and Graph::InputLayersAccessor::m_Graph.

+
379  {
380  const size_t numErased = m_Graph->m_InputIds.erase(GetBindingId());
381  IgnoreUnused(numErased);
382  ARMNN_ASSERT(numErased == 1);
383  }
void IgnoreUnused(Ts &&...)
+
#define ARMNN_ASSERT(COND)
Definition: Assert.hpp:14
+
+
+
+
The documentation for this class was generated from the following file: +
+
+ + + + -- cgit v1.2.1