David Beck | d4dfa68 | 2018-10-24 17:09:46 +0100 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | #pragma once |
| 6 | |
| 7 | #include <armnn/Types.hpp> |
| 8 | #include <armnn/IRuntime.hpp> |
| 9 | #include "RegistryCommon.hpp" |
| 10 | #include "IBackendContext.hpp" |
| 11 | |
| 12 | namespace armnn |
| 13 | { |
| 14 | |
| 15 | using BackendContextRegistry = RegistryCommon<IBackendContext, |
| 16 | IBackendContextUniquePtr, |
| 17 | IRuntime::CreationOptions>; |
| 18 | |
| 19 | BackendContextRegistry& BackendContextRegistryInstance(); |
| 20 | |
| 21 | template <> |
| 22 | struct RegisteredTypeName<IBackendContext> |
| 23 | { |
| 24 | static const char * Name() { return "IBackendContext"; } |
| 25 | }; |
| 26 | |
| 27 | } // namespace armnn |