ArmNN
 24.08
OptimizedNetworkImpl Class Reference

#include <OptimizedNetworkImpl.hpp>

Public Member Functions

 OptimizedNetworkImpl (const OptimizedNetworkImpl &other, const ModelOptions &modelOptions)
 
 OptimizedNetworkImpl (std::unique_ptr< Graph > graph)
 
 OptimizedNetworkImpl (std::unique_ptr< Graph > graph, const ModelOptions &modelOptions)
 
virtual ~OptimizedNetworkImpl ()
 
virtual Status PrintGraph ()
 
virtual Status SerializeToDot (std::ostream &stream) const
 
virtual arm::pipe::ProfilingGuid GetGuid () const
 
virtual size_t GetNumInputs () const
 
virtual size_t GetNumOutputs () const
 
GraphGetGraph ()
 
GraphGetGraph () const
 
ModelOptionsGetModelOptions ()
 
void ExecuteStrategy (IStrategy &strategy) const
 

Detailed Description

Definition at line 11 of file OptimizedNetworkImpl.hpp.

Constructor & Destructor Documentation

◆ OptimizedNetworkImpl() [1/3]

OptimizedNetworkImpl ( const OptimizedNetworkImpl other,
const ModelOptions modelOptions 
)

Definition at line 3114 of file Network.cpp.

3115  : m_Graph(new Graph(*other.m_Graph.get()))
3116  , m_Guid(arm::pipe::IProfilingService::GetNextGuid())
3117  , m_ModelOptions(modelOptions)
3118 {
3119 }

◆ OptimizedNetworkImpl() [2/3]

OptimizedNetworkImpl ( std::unique_ptr< Graph graph)

Definition at line 3121 of file Network.cpp.

3122  : m_Graph(std::move(graph)), m_Guid(arm::pipe::IProfilingService::GetNextGuid())
3123 {
3124 }

◆ OptimizedNetworkImpl() [3/3]

OptimizedNetworkImpl ( std::unique_ptr< Graph graph,
const ModelOptions modelOptions 
)

Definition at line 3126 of file Network.cpp.

3127  : m_Graph(std::move(graph)), m_Guid(arm::pipe::IProfilingService::GetNextGuid()), m_ModelOptions(modelOptions)
3128 {
3129 }

◆ ~OptimizedNetworkImpl()

~OptimizedNetworkImpl ( )
virtual

Definition at line 3131 of file Network.cpp.

3132 {
3133 }

Member Function Documentation

◆ ExecuteStrategy()

void ExecuteStrategy ( IStrategy strategy) const

Definition at line 3140 of file Network.cpp.

3141 {
3142  for (auto layer : GetGraph())
3143  {
3144  layer->ExecuteStrategy(strategy);
3145  };
3146 }

References OptimizedNetworkImpl::GetGraph().

◆ GetGraph() [1/2]

Graph& GetGraph ( )
inline

◆ GetGraph() [2/2]

Graph& GetGraph ( ) const
inline

Definition at line 28 of file OptimizedNetworkImpl.hpp.

28 { return *m_Graph; }

◆ GetGuid()

virtual arm::pipe::ProfilingGuid GetGuid ( ) const
inlinevirtual

Definition at line 22 of file OptimizedNetworkImpl.hpp.

22 { return m_Guid; };

◆ GetModelOptions()

ModelOptions& GetModelOptions ( )
inline

Definition at line 29 of file OptimizedNetworkImpl.hpp.

29 { return m_ModelOptions; }

◆ GetNumInputs()

size_t GetNumInputs ( ) const
virtual

Definition at line 752 of file Network.cpp.

753 {
754  return m_Graph->GetNumInputs();
755 }

◆ GetNumOutputs()

size_t GetNumOutputs ( ) const
virtual

Definition at line 757 of file Network.cpp.

758 {
759  return m_Graph->GetNumOutputs();
760 }

◆ PrintGraph()

Status PrintGraph ( )
virtual

Definition at line 741 of file Network.cpp.

742 {
743  m_Graph->Print();
744  return Status::Success;
745 }

References armnn::Success.

◆ SerializeToDot()

Status SerializeToDot ( std::ostream &  stream) const
virtual

Definition at line 747 of file Network.cpp.

748 {
749  return m_Graph->SerializeToDot(stream);
750 }

The documentation for this class was generated from the following files:
armnn::OptimizedNetworkImpl::GetGraph
Graph & GetGraph()
Definition: OptimizedNetworkImpl.hpp:27
armnn::Status::Success
@ Success