ArmNN
 24.02
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 3096 of file Network.cpp.

3097  : m_Graph(new Graph(*other.m_Graph.get()))
3098  , m_Guid(arm::pipe::IProfilingService::GetNextGuid())
3099  , m_ModelOptions(modelOptions)
3100 {
3101 }

◆ OptimizedNetworkImpl() [2/3]

OptimizedNetworkImpl ( std::unique_ptr< Graph graph)

Definition at line 3103 of file Network.cpp.

3104  : m_Graph(std::move(graph)), m_Guid(arm::pipe::IProfilingService::GetNextGuid())
3105 {
3106 }

◆ OptimizedNetworkImpl() [3/3]

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

Definition at line 3108 of file Network.cpp.

3109  : m_Graph(std::move(graph)), m_Guid(arm::pipe::IProfilingService::GetNextGuid()), m_ModelOptions(modelOptions)
3110 {
3111 }

◆ ~OptimizedNetworkImpl()

~OptimizedNetworkImpl ( )
virtual

Definition at line 3113 of file Network.cpp.

3114 {
3115 }

Member Function Documentation

◆ ExecuteStrategy()

void ExecuteStrategy ( IStrategy strategy) const

Definition at line 3122 of file Network.cpp.

3123 {
3124  for (auto layer : GetGraph())
3125  {
3126  layer->ExecuteStrategy(strategy);
3127  };
3128 }

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 746 of file Network.cpp.

747 {
748  return m_Graph->GetNumInputs();
749 }

◆ GetNumOutputs()

size_t GetNumOutputs ( ) const
virtual

Definition at line 751 of file Network.cpp.

752 {
753  return m_Graph->GetNumOutputs();
754 }

◆ PrintGraph()

Status PrintGraph ( )
virtual

Definition at line 735 of file Network.cpp.

736 {
737  m_Graph->Print();
738  return Status::Success;
739 }

References armnn::Success.

◆ SerializeToDot()

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

Definition at line 741 of file Network.cpp.

742 {
743  return m_Graph->SerializeToDot(stream);
744 }

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