From 4f1e8e47e29d42ed5862cccb29cf183853c4a86c Mon Sep 17 00:00:00 2001 From: David Monahan Date: Wed, 4 Sep 2019 09:22:10 +0100 Subject: IVGCVSW-3687 Add INetworkProperties to LoadNetwork * Allows users to specify if Import/Export should be used Signed-off-by: David Monahan Change-Id: I64da26a6acbeb91ef72d31b6ccc01bb1447f624d --- src/armnn/LoadedNetwork.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/armnn/LoadedNetwork.hpp') diff --git a/src/armnn/LoadedNetwork.hpp b/src/armnn/LoadedNetwork.hpp index 808a93222a..08c09b8801 100644 --- a/src/armnn/LoadedNetwork.hpp +++ b/src/armnn/LoadedNetwork.hpp @@ -41,7 +41,8 @@ public: Status EnqueueWorkload(const InputTensors& inputTensors, const OutputTensors& outputTensors); static std::unique_ptr MakeLoadedNetwork(std::unique_ptr net, - std::string & errorMessage); + std::string & errorMessage, + const INetworkProperties& networkProperties); // NOTE we return by reference as the purpose of this method is only to provide // access to the private m_Profiler and in theory we should not need to increment @@ -55,7 +56,7 @@ public: private: void AllocateWorkingMemory(); - LoadedNetwork(std::unique_ptr net); + LoadedNetwork(std::unique_ptr net, const INetworkProperties& networkProperties); void EnqueueInput(const BindableLayer& layer, ITensorHandle* tensorHandle, const TensorInfo& tensorInfo); @@ -84,6 +85,8 @@ private: mutable std::mutex m_WorkingMemMutex; bool m_IsWorkingMemAllocated=false; + bool m_IsImportEnabled=false; + bool m_IsExportEnabled=false; TensorHandleFactoryRegistry m_TensorHandleFactoryRegistry; }; -- cgit v1.2.1