diff options
author | Finn Williams <Finn.Williams@arm.com> | 2020-05-15 18:41:05 +0100 |
---|---|---|
committer | finn.williams <finn.williams@arm.com> | 2020-05-19 11:45:57 +0000 |
commit | 45a736263e117b484528e6dee05c549beae721b4 (patch) | |
tree | c674cd5bcd8e22c218c50fadf4c724691c415210 /src/armnn/Runtime.cpp | |
parent | b98032f6a46072fee9a2bfcbe631b8193ced567d (diff) | |
download | armnn-45a736263e117b484528e6dee05c549beae721b4.tar.gz |
IVGCVSW-4834 Add calls to increment REGISTERED_BACKENDS and UNREGISTERED_BACKENDS
Signed-off-by: Finn Williams <Finn.Williams@arm.com>
Change-Id: I3600dd15f97ccd4ab745deb87d06ba978e2a0b11
Diffstat (limited to 'src/armnn/Runtime.cpp')
-rw-r--r-- | src/armnn/Runtime.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/armnn/Runtime.cpp b/src/armnn/Runtime.cpp index 483eea7165..dbdd409784 100644 --- a/src/armnn/Runtime.cpp +++ b/src/armnn/Runtime.cpp @@ -220,6 +220,7 @@ Runtime::Runtime(const CreationOptions& options) } } + BackendRegistryInstance().SetProfilingService(m_ProfilingService); // pass configuration info to the profiling service m_ProfilingService.ConfigureProfilingService(options.m_ProfilingOptions); @@ -269,6 +270,8 @@ Runtime::~Runtime() DynamicBackendUtils::DeregisterDynamicBackends(m_DeviceSpec.GetDynamicBackends()); m_DeviceSpec.ClearDynamicBackends(); m_BackendContexts.clear(); + + BackendRegistryInstance().SetProfilingService(armnn::EmptyOptional()); } LoadedNetwork* Runtime::GetLoadedNetworkPtr(NetworkId networkId) const |