ArmNN
 26.01
Loading...
Searching...
No Matches
Graph::LayerInGraph< InputLayer > Class Referencefinal

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

#include <Graph.hpp>

Inheritance diagram for Graph::LayerInGraph< InputLayer >:
[legend]
Collaboration diagram for Graph::LayerInGraph< InputLayer >:
[legend]

Public Member Functions

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

Detailed Description

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

Definition at line 401 of file Graph.hpp.

Constructor & Destructor Documentation

◆ LayerInGraph() [1/2]

template<typename... Args>
LayerInGraph ( Graph & graph,
Args &&... args )
inline

Definition at line 405 of file Graph.hpp.

406 : LayerInGraphBase<InputLayer>(graph,
407 // Always add to the back of the inputs.
408 std::next(graph.begin(), IteratorDifference(graph.GetNumInputs())),
409 std::forward<Args>(args)...)
410 {
411 const bool isNewId = m_Graph->m_InputIds.emplace(GetBindingId()).second;
412 if (!isNewId)
413 {
414 throw InvalidArgumentException("A layer already exists with the specified id");
415 }
416 }
Iterator::difference_type IteratorDifference
Definition Graph.hpp:54

◆ LayerInGraph() [2/2]

template<typename... Args>
LayerInGraph ( Graph & graph,
Iterator ,
Args &&... args )
inline

Definition at line 418 of file Graph.hpp.

420 : LayerInGraph(graph, std::forward<Args>(args)...)
421 {
422 }
LayerInGraph(Graph &graph, Args &&... args)
Definition Graph.hpp:405

◆ ~LayerInGraph()

~LayerInGraph ( )
inlineoverride

Definition at line 423 of file Graph.hpp.

424 {
425 const size_t numErased = m_Graph->m_InputIds.erase(GetBindingId());
426 IgnoreUnused(numErased);
427 }
void IgnoreUnused(Ts &&...)

References armnn::IgnoreUnused().


The documentation for this class was generated from the following file: