IVGCVSW-5484 Add CacheLoadedNetwork options to ExecuteNetwork

 * Enable ability to save/load ClContext in ExecuteNetwork.

Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com>
Change-Id: I58c61a53f6713853eb06520cc372ed47baf7f8c4
diff --git a/tests/InferenceModel.hpp b/tests/InferenceModel.hpp
index 1b87a10..7daae26 100644
--- a/tests/InferenceModel.hpp
+++ b/tests/InferenceModel.hpp
@@ -97,6 +97,8 @@
     bool                            m_ParseUnsupported;
     bool                            m_InferOutputShape;
     bool                            m_EnableFastMath;
+    bool                            m_SaveCachedNetwork;
+    std::string                     m_CachedNetworkFilePath;
 
     Params()
         : m_ComputeDevices{}
@@ -109,6 +111,8 @@
         , m_ParseUnsupported(false)
         , m_InferOutputShape(false)
         , m_EnableFastMath(false)
+        , m_SaveCachedNetwork(false)
+        , m_CachedNetworkFilePath("")
     {}
 };
 
@@ -426,7 +430,9 @@
 
             armnn::BackendOptions gpuAcc("GpuAcc",
             {
-                { "FastMathEnabled", params.m_EnableFastMath }
+                { "FastMathEnabled", params.m_EnableFastMath },
+                { "SaveCachedNetwork", params.m_SaveCachedNetwork },
+                { "CachedNetworkFilePath", params.m_CachedNetworkFilePath }
             });
             armnn::BackendOptions cpuAcc("CpuAcc",
             {