From f36e10b8947fe5f0984e7428c2d5d5d7fe18007e Mon Sep 17 00:00:00 2001 From: Sadik Armagan Date: Mon, 11 Jan 2021 16:34:01 +0000 Subject: IVGCVSW-5485 'Add CacheLoadedNetwork options to Android NN Driver' * Added Flatbuffers dependency to android-nn-driver * Added CacheLoadedNetwork options to android-nn-driver Options will be android.hardware.neuralnetworks@1.3-service-armnn -v -c GpuAcc -n arm-armnn -s -q & Signed-off-by: Sadik Armagan Change-Id: I2cdf0b84062cb1c6ad4346cd64b00161cfe85920 --- DriverOptions.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'DriverOptions.hpp') diff --git a/DriverOptions.hpp b/DriverOptions.hpp index 15236521..f3b441ca 100644 --- a/DriverOptions.hpp +++ b/DriverOptions.hpp @@ -36,6 +36,8 @@ public: void SetBackends(const std::vector& backends) { m_Backends = backends; } bool ShouldExit() const { return m_ShouldExit; } int GetExitCode() const { return m_ExitCode; } + const std::string& GetCachedNetworkFilePath() const { return m_CachedNetworkFilePath; } + bool SaveCachedNetwork() const { return m_SaveCachedNetwork; } private: std::vector m_Backends; @@ -51,6 +53,8 @@ private: bool m_FastMathEnabled; bool m_ShouldExit; int m_ExitCode; + std::string m_CachedNetworkFilePath; + bool m_SaveCachedNetwork; }; } // namespace armnn_driver -- cgit v1.2.1