From 0d677db72eb7945e304fc49cedf744f0c34ed330 Mon Sep 17 00:00:00 2001 From: Mike Kelly Date: Sun, 27 Jun 2021 22:39:21 +0100 Subject: IVGCVSW-6114 Create multiple LoadedNetworks from one OptimizedNetwork * Added IOptimizedNetwork constructor that takes another IOptimizedNetwork and a ModelOptions. * Changed PreCompiledLayer to use shared_ptr rather than unique_ptr to store the PreCompiledObject (no interface changes). * Added unit tests to ensure that PreCompiledLayer::Clone() clones the pointer to the PreCompiledObject correctly. Signed-off-by: Mike Kelly Change-Id: I3ef56055e0d189ffce9e651882d34da16c70a240 --- include/armnn/INetwork.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/armnn/INetwork.hpp b/include/armnn/INetwork.hpp index 3c45262f1d..b40db62a59 100644 --- a/include/armnn/INetwork.hpp +++ b/include/armnn/INetwork.hpp @@ -731,6 +731,9 @@ public: profiling::ProfilingGuid GetGuid() const; + // Creates a copy of the IOptimizedNetwork. The IOptimizedNetwork will not be reoptimized, + // the provided ModelOptions will only be used when creating a LoadedNetwork. + IOptimizedNetwork(const IOptimizedNetwork& other, const ModelOptions& modelOptions); IOptimizedNetwork(std::unique_ptr graph); IOptimizedNetwork(std::unique_ptr impl); ~IOptimizedNetwork(); -- cgit v1.2.1