ArmNN
 24.08
OptimizedNetworkImpl.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2021 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #include <common/include/ProfilingGuid.hpp>
7 
8 namespace armnn
9 {
10 
12 {
13 public:
14  OptimizedNetworkImpl(const OptimizedNetworkImpl& other, const ModelOptions& modelOptions);
15  OptimizedNetworkImpl(std::unique_ptr<Graph> graph);
16  OptimizedNetworkImpl(std::unique_ptr<Graph> graph, const ModelOptions& modelOptions);
17  virtual ~OptimizedNetworkImpl();
18 
19  virtual Status PrintGraph();
20  virtual Status SerializeToDot(std::ostream& stream) const;
21 
22  virtual arm::pipe::ProfilingGuid GetGuid() const { return m_Guid; };
23 
24  virtual size_t GetNumInputs() const;
25  virtual size_t GetNumOutputs() const;
26 
27  Graph& GetGraph() { return *m_Graph; }
28  Graph& GetGraph() const { return *m_Graph; }
29  ModelOptions& GetModelOptions() { return m_ModelOptions; }
30 
31  void ExecuteStrategy(IStrategy& strategy) const;
32 
33 private:
34  std::unique_ptr<Graph> m_Graph;
35  arm::pipe::ProfilingGuid m_Guid;
36  ModelOptions m_ModelOptions;
37 };
38 
39 }
armnn::OptimizedNetworkImpl::GetGuid
virtual arm::pipe::ProfilingGuid GetGuid() const
Definition: OptimizedNetworkImpl.hpp:22
armnn::OptimizedNetworkImpl::PrintGraph
virtual Status PrintGraph()
Definition: Network.cpp:741
armnn::OptimizedNetworkImpl::SerializeToDot
virtual Status SerializeToDot(std::ostream &stream) const
Definition: Network.cpp:747
armnn::OptimizedNetworkImpl::ExecuteStrategy
void ExecuteStrategy(IStrategy &strategy) const
Definition: Network.cpp:3140
armnn::OptimizedNetworkImpl::GetGraph
Graph & GetGraph()
Definition: OptimizedNetworkImpl.hpp:27
armnn::OptimizedNetworkImpl::~OptimizedNetworkImpl
virtual ~OptimizedNetworkImpl()
Definition: Network.cpp:3131
armnn::IStrategy
Definition: IStrategy.hpp:16
armnn::OptimizedNetworkImpl::OptimizedNetworkImpl
OptimizedNetworkImpl(const OptimizedNetworkImpl &other, const ModelOptions &modelOptions)
Definition: Network.cpp:3114
armnn::OptimizedNetworkImpl
Definition: OptimizedNetworkImpl.hpp:11
armnn::OptimizedNetworkImpl::GetGraph
Graph & GetGraph() const
Definition: OptimizedNetworkImpl.hpp:28
armnn::OptimizedNetworkImpl::GetNumInputs
virtual size_t GetNumInputs() const
Definition: Network.cpp:752
armnn::Status
Status
Definition: Types.hpp:42
armnn::OptimizedNetworkImpl::GetModelOptions
ModelOptions & GetModelOptions()
Definition: OptimizedNetworkImpl.hpp:29
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition: 01_00_quick_start.dox:6
armnn::ModelOptions
std::vector< BackendOptions > ModelOptions
Definition: BackendOptions.hpp:18
armnn::OptimizedNetworkImpl::GetNumOutputs
virtual size_t GetNumOutputs() const
Definition: Network.cpp:757
armnn::Graph
Definition: Graph.hpp:30