aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/test/TestUtils.cpp
diff options
context:
space:
mode:
authorFrancis Murtagh <francis.murtagh@arm.com>2021-02-15 18:23:17 +0000
committerFrancis Murtagh <francis.murtagh@arm.com>2021-02-15 18:23:17 +0000
commit3d2b4b2bff3be27f12a99e0e01284078870ee954 (patch)
tree33a9ea2a3267707088fd0a4a727d73a4568bb0a6 /src/armnn/test/TestUtils.cpp
parent052fbe9c86628cfdc534c515d9b451aa8d3d1cb6 (diff)
downloadarmnn-3d2b4b2bff3be27f12a99e0e01284078870ee954.tar.gz
IVGCVSW-4873 Implement Pimpl Idiom for INetwork and IOptimizedNetwork
!android-nn-driver:5042 Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: Ia1ce8b839e81b46428ba0f78463e085e5906958d Signed-off-by: Francis Murtagh <francis.murtagh@arm.com> Signed-off-by: Finn Williams <Finn.Williams@arm.com>
Diffstat (limited to 'src/armnn/test/TestUtils.cpp')
-rw-r--r--src/armnn/test/TestUtils.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/armnn/test/TestUtils.cpp b/src/armnn/test/TestUtils.cpp
index 440d4e09f3..6020c7631c 100644
--- a/src/armnn/test/TestUtils.cpp
+++ b/src/armnn/test/TestUtils.cpp
@@ -22,6 +22,16 @@ void Connect(armnn::IConnectableLayer* from, armnn::IConnectableLayer* to, const
namespace armnn
{
+Graph& GetGraphForTesting(IOptimizedNetwork* optNet)
+{
+ return optNet->pOptimizedNetworkImpl->GetGraph();
+}
+
+ModelOptions& GetModelOptionsForTesting(IOptimizedNetwork* optNet)
+{
+ return optNet->pOptimizedNetworkImpl->GetModelOptions();
+}
+
profiling::ProfilingService& GetProfilingService(armnn::RuntimeImpl* runtime)
{
return runtime->m_ProfilingService;