diff options
author | Francis Murtagh <francis.murtagh@arm.com> | 2021-02-15 18:23:17 +0000 |
---|---|---|
committer | Francis Murtagh <francis.murtagh@arm.com> | 2021-02-15 18:23:17 +0000 |
commit | 3d2b4b2bff3be27f12a99e0e01284078870ee954 (patch) | |
tree | 33a9ea2a3267707088fd0a4a727d73a4568bb0a6 /src/armnn/OptimizedNetworkImpl.hpp | |
parent | 052fbe9c86628cfdc534c515d9b451aa8d3d1cb6 (diff) | |
download | armnn-3d2b4b2bff3be27f12a99e0e01284078870ee954.tar.gz |
IVGCVSW-4873 Implement Pimpl Idiom for INetwork and IOptimizedNetwork
!android-nn-driver:5042
Signed-off-by: Kevin May <kevin.may@arm.com>
Change-Id: Ia1ce8b839e81b46428ba0f78463e085e5906958d
Signed-off-by: Francis Murtagh <francis.murtagh@arm.com>
Signed-off-by: Finn Williams <Finn.Williams@arm.com>
Diffstat (limited to 'src/armnn/OptimizedNetworkImpl.hpp')
-rw-r--r-- | src/armnn/OptimizedNetworkImpl.hpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/armnn/OptimizedNetworkImpl.hpp b/src/armnn/OptimizedNetworkImpl.hpp new file mode 100644 index 0000000000..25bf9ca49c --- /dev/null +++ b/src/armnn/OptimizedNetworkImpl.hpp @@ -0,0 +1,30 @@ +// +// Copyright © 2021 Arm Ltd and Contributors. All rights reserved. +// SPDX-License-Identifier: MIT +// + +namespace armnn +{ + +class OptimizedNetworkImpl +{ +public: + 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 profiling::ProfilingGuid GetGuid() const { return m_Guid; }; + + Graph& GetGraph() { return *m_Graph; } + ModelOptions& GetModelOptions() { return m_ModelOptions; } + +private: + std::unique_ptr<Graph> m_Graph; + profiling::ProfilingGuid m_Guid; + ModelOptions m_ModelOptions; +}; + +} |