ArmNN
 24.02
TosaRefBackend.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2022 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 #pragma once
6 
8 
9 namespace armnn
10 {
11 
13 {
14 public:
15  TosaRefBackend() = default;
16  ~TosaRefBackend() = default;
17 
18  static const BackendId& GetIdStatic();
19  const BackendId& GetId() const override
20  {
21  return GetIdStatic();
22  }
23 
25 
27  const IBackendInternal::IMemoryManagerSharedPtr& memoryManager = nullptr) const override;
28 
30  class TensorHandleFactoryRegistry& tensorHandleFactoryRegistry) const override;
31 
33 
36  IBackendProfilingPtr& backendProfiling) override;
37 
39 
41  const ModelOptions& modelOptions) const override;
42 
43  std::vector<ITensorHandleFactory::FactoryId> GetHandleFactoryPreferences() const override;
44 
45  void RegisterTensorHandleFactories(class TensorHandleFactoryRegistry& registry) override;
46 
47  std::unique_ptr<ICustomAllocator> GetDefaultAllocator() const override;
48 
49 private:
50  // Private members
51 
52 protected:
53  // Protected members
54 };
55 
56 } // namespace armnn
armnn::TosaRefBackend::GetHandleFactoryPreferences
std::vector< ITensorHandleFactory::FactoryId > GetHandleFactoryPreferences() const override
(Optional) Returns a vector of supported TensorHandleFactory ids in preference order.
Definition: TosaRefBackend.cpp:170
armnn::IBackendInternal::IMemoryManagerSharedPtr
std::shared_ptr< IMemoryManager > IMemoryManagerSharedPtr
Definition: IBackendInternal.hpp:99
armnn::TensorHandleFactoryRegistry
Definition: TensorHandleFactoryRegistry.hpp:23
armnn::TosaRefBackend::CreateWorkloadFactory
IBackendInternal::IWorkloadFactoryPtr CreateWorkloadFactory(const IBackendInternal::IMemoryManagerSharedPtr &memoryManager=nullptr) const override
Definition: TosaRefBackend.cpp:38
armnn::TosaRefBackend::~TosaRefBackend
~TosaRefBackend()=default
armnn::TosaRefBackend
Definition: TosaRefBackend.hpp:12
armnn::TosaRefBackend::OptimizeSubgraphView
OptimizationViews OptimizeSubgraphView(const SubgraphView &subgraph, const ModelOptions &modelOptions) const override
Definition: TosaRefBackend.cpp:82
armnn::IBackendInternal
Definition: IBackendInternal.hpp:77
armnn::IBackendInternal::IBackendContextPtr
std::unique_ptr< IBackendContext > IBackendContextPtr
Definition: IBackendInternal.hpp:90
armnn::TosaRefBackend::GetLayerSupport
IBackendInternal::ILayerSupportSharedPtr GetLayerSupport() const override
Definition: TosaRefBackend.cpp:76
armnn::TosaRefBackend::TosaRefBackend
TosaRefBackend()=default
armnn::TosaRefBackend::RegisterTensorHandleFactories
void RegisterTensorHandleFactories(class TensorHandleFactoryRegistry &registry) override
(Optional) Register TensorHandleFactories Either this method or CreateMemoryManager() and IWorkloadFa...
Definition: TosaRefBackend.cpp:175
armnn::TosaRefBackend::GetId
const BackendId & GetId() const override
Definition: TosaRefBackend.hpp:19
IBackendInternal.hpp
armnn::TosaRefBackend::GetDefaultAllocator
std::unique_ptr< ICustomAllocator > GetDefaultAllocator() const override
Returns the default memory allocator for the backend.
Definition: TosaRefBackend.cpp:189
armnn::SubgraphView
The SubgraphView class represents a subgraph of a Graph.
Definition: SubgraphView.hpp:31
armnn::OptimizationViews
Definition: OptimizationViews.hpp:17
armnn::TosaRefBackend::CreateBackendProfilingContext
IBackendInternal::IBackendProfilingContextPtr CreateBackendProfilingContext(const IRuntime::CreationOptions &creationOptions, IBackendProfilingPtr &backendProfiling) override
Create context specifically used for profiling interaction from backends.
Definition: TosaRefBackend.cpp:65
armnn::TosaRefBackend::GetIdStatic
static const BackendId & GetIdStatic()
Definition: TosaRefBackend.cpp:32
armnn::TosaRefBackend::CreateBackendContext
IBackendInternal::IBackendContextPtr CreateBackendContext(const IRuntime::CreationOptions &) const override
Create the runtime context of the backend.
Definition: TosaRefBackend.cpp:60
armnn::IBackendInternal::IBackendProfilingContextPtr
std::shared_ptr< arm::pipe::IBackendProfilingContext > IBackendProfilingContextPtr
This is the bridge between backend and backend profiling we'll keep it in the backend namespace.
Definition: IBackendInternal.hpp:92
armnn::IBackendInternal::IBackendProfilingPtr
std::unique_ptr< arm::pipe::IBackendProfiling > IBackendProfilingPtr
Definition: IBackendInternal.hpp:93
armnn::IRuntime::CreationOptions
Definition: IRuntime.hpp:78
armnn::IBackendInternal::IMemoryManagerUniquePtr
std::unique_ptr< IMemoryManager > IMemoryManagerUniquePtr
Definition: IBackendInternal.hpp:98
armnn::BackendId
Definition: BackendId.hpp:75
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition: 01_00_quick_start.dox:6
armnn::IBackendInternal::ILayerSupportSharedPtr
std::shared_ptr< ILayerSupport > ILayerSupportSharedPtr
Definition: IBackendInternal.hpp:94
armnn::ModelOptions
std::vector< BackendOptions > ModelOptions
Definition: BackendOptions.hpp:18
armnn::IBackendInternal::IWorkloadFactoryPtr
std::unique_ptr< IWorkloadFactory > IWorkloadFactoryPtr
Definition: IBackendInternal.hpp:89
armnn::TosaRefBackend::CreateMemoryManager
IBackendInternal::IMemoryManagerUniquePtr CreateMemoryManager() const override
Definition: TosaRefBackend.cpp:71