| // |
| // Copyright © 2017 Arm Ltd. All rights reserved. |
| // SPDX-License-Identifier: MIT |
| // |
| #pragma once |
| |
| #include <armnn/backends/IBackendInternal.hpp> |
| |
| namespace armnn |
| { |
| |
| class NeonBackend : public IBackendInternal |
| { |
| public: |
| NeonBackend() = default; |
| ~NeonBackend() = default; |
| |
| static const BackendId& GetIdStatic(); |
| const BackendId& GetId() const override { return GetIdStatic(); } |
| |
| IBackendInternal::IMemoryManagerUniquePtr CreateMemoryManager() const override; |
| |
| IWorkloadFactoryPtr CreateWorkloadFactory( |
| const IBackendInternal::IMemoryManagerSharedPtr& memoryManager = nullptr) const override; |
| |
| IWorkloadFactoryPtr CreateWorkloadFactory( |
| class TensorHandleFactoryRegistry& tensorHandleFactoryRegistry) const override; |
| |
| IBackendInternal::IBackendContextPtr CreateBackendContext(const IRuntime::CreationOptions&) const override; |
| IBackendInternal::IBackendProfilingContextPtr CreateBackendProfilingContext(const IRuntime::CreationOptions&, |
| armnn::profiling::IBackendProfiling&) const override; |
| IBackendInternal::Optimizations GetOptimizations() const override; |
| IBackendInternal::ILayerSupportSharedPtr GetLayerSupport() const override; |
| |
| OptimizationViews OptimizeSubgraphView(const SubgraphView& subgraph) const override; |
| |
| std::vector<ITensorHandleFactory::FactoryId> GetHandleFactoryPreferences() const override; |
| |
| void RegisterTensorHandleFactories(class TensorHandleFactoryRegistry& registry) override; |
| }; |
| |
| } // namespace armnn |