ArmNN
 24.05
Graph::LayerInGraph< OutputLayer > Class Referencefinal

Outputs add/remove their binding id to m_OutputIds in the graph. More...

#include <Graph.hpp>

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

Public Member Functions

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

Detailed Description

Outputs add/remove their binding id to m_OutputIds in the graph.

Definition at line 432 of file Graph.hpp.

Constructor & Destructor Documentation

◆ LayerInGraph()

LayerInGraph ( Graph graph,
Args &&...  args 
)
inline

Definition at line 436 of file Graph.hpp.

437  : LayerInGraphBase<OutputLayer>(graph,
438  // Always add to the back of the outputs.
439  graph.end(),
440  std::forward<Args>(args)...)
441  {
442  const bool isNewId = m_Graph->m_OutputIds.emplace(GetBindingId()).second;
443  if (!isNewId)
444  {
445  throw InvalidArgumentException("A layer already exists with the specified id");
446  }
447  }

◆ ~LayerInGraph()

~LayerInGraph ( )
inlineoverride

Definition at line 448 of file Graph.hpp.

449  {
450  const size_t numErased = m_Graph->m_OutputIds.erase(GetBindingId());
451  IgnoreUnused(numErased);
452  }

References armnn::IgnoreUnused().


The documentation for this class was generated from the following file:
armnn::IgnoreUnused
void IgnoreUnused(Ts &&...)
Definition: IgnoreUnused.hpp:14