diff options
author | Kevin May <kevin.may@arm.com> | 2021-02-04 10:27:41 +0000 |
---|---|---|
committer | Kevin May <kevin.may@arm.com> | 2021-02-08 14:01:38 +0000 |
commit | d92a6e4c19567cb03de76963068c002353cea528 (patch) | |
tree | 84f0148df05a6ec4b4a550281a63de374353cfeb /src/armnn/test | |
parent | 92dd48a170c5fbce9f46bfcea8df97b3c3ebdccb (diff) | |
download | armnn-d92a6e4c19567cb03de76963068c002353cea528.tar.gz |
IVGCVSW-4873 Implement Pimpl Idiom for IRuntime
Signed-off-by: Kevin May <kevin.may@arm.com>
Change-Id: I52448938735b2aa678c47e0f3061c87fa0c693b1
Diffstat (limited to 'src/armnn/test')
-rw-r--r-- | src/armnn/test/RuntimeTests.cpp | 8 | ||||
-rw-r--r-- | src/armnn/test/RuntimeTests.hpp | 2 | ||||
-rw-r--r-- | src/armnn/test/TestUtils.cpp | 2 | ||||
-rw-r--r-- | src/armnn/test/TestUtils.hpp | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/src/armnn/test/RuntimeTests.cpp b/src/armnn/test/RuntimeTests.cpp index b3a8bbd6a6..1d5960b2a4 100644 --- a/src/armnn/test/RuntimeTests.cpp +++ b/src/armnn/test/RuntimeTests.cpp @@ -27,7 +27,7 @@ namespace armnn { -void RuntimeLoadedNetworksReserve(armnn::Runtime* runtime) +void RuntimeLoadedNetworksReserve(armnn::RuntimeImpl* runtime) { runtime->m_LoadedNetworks.reserve(1); } @@ -129,7 +129,7 @@ BOOST_AUTO_TEST_CASE(RuntimeMemoryLeak) // ensure that runtime is large enough before checking for memory leaks // otherwise when loading the network it will automatically reserve memory that won't be released until destruction armnn::IRuntime::CreationOptions options; - armnn::Runtime runtime(options); + armnn::RuntimeImpl runtime(options); armnn::RuntimeLoadedNetworksReserve(&runtime); { @@ -333,7 +333,7 @@ BOOST_AUTO_TEST_CASE(ProfilingDisable) // Create runtime in which the test will run armnn::IRuntime::CreationOptions options; - armnn::Runtime runtime(options); + armnn::RuntimeImpl runtime(options); // build up the structure of the network INetworkPtr net(INetwork::Create()); @@ -378,7 +378,7 @@ BOOST_AUTO_TEST_CASE(ProfilingEnableCpuRef) options.m_ProfilingOptions.m_EnableProfiling = true; options.m_ProfilingOptions.m_TimelineEnabled = true; - armnn::Runtime runtime(options); + armnn::RuntimeImpl runtime(options); GetProfilingService(&runtime).ResetExternalProfilingOptions(options.m_ProfilingOptions, false); profiling::ProfilingServiceRuntimeHelper profilingServiceHelper(GetProfilingService(&runtime)); diff --git a/src/armnn/test/RuntimeTests.hpp b/src/armnn/test/RuntimeTests.hpp index 90aed5de1e..bca8324733 100644 --- a/src/armnn/test/RuntimeTests.hpp +++ b/src/armnn/test/RuntimeTests.hpp @@ -9,6 +9,6 @@ namespace armnn { -void RuntimeLoadedNetworksReserve(armnn::Runtime* runtime); +void RuntimeLoadedNetworksReserve(armnn::RuntimeImpl* runtime); } // namespace armnn diff --git a/src/armnn/test/TestUtils.cpp b/src/armnn/test/TestUtils.cpp index 6d7d02dcff..440d4e09f3 100644 --- a/src/armnn/test/TestUtils.cpp +++ b/src/armnn/test/TestUtils.cpp @@ -22,7 +22,7 @@ void Connect(armnn::IConnectableLayer* from, armnn::IConnectableLayer* to, const namespace armnn { -profiling::ProfilingService& GetProfilingService(armnn::Runtime* runtime) +profiling::ProfilingService& GetProfilingService(armnn::RuntimeImpl* runtime) { return runtime->m_ProfilingService; } diff --git a/src/armnn/test/TestUtils.hpp b/src/armnn/test/TestUtils.hpp index 9c5f672a5a..bf222b3c56 100644 --- a/src/armnn/test/TestUtils.hpp +++ b/src/armnn/test/TestUtils.hpp @@ -52,6 +52,6 @@ bool CheckRelatedLayers(armnn::Graph& graph, const std::list<std::string>& testR namespace armnn { -profiling::ProfilingService& GetProfilingService(armnn::Runtime* runtime); +profiling::ProfilingService& GetProfilingService(RuntimeImpl* runtime); } // namespace armnn
\ No newline at end of file |