23.02
|
Go to the documentation of this file.
15 {
"NonConstWeights",
false},
16 {
"AsyncExecution",
false},
17 {
"ProtectedContentAllocation",
false},
18 {
"ConstantTensorsAsInputs",
true},
19 {
"PreImportIOTensors",
false},
20 {
"ExternallyManagedMemory",
true},
21 {
"MultiAxisPacking",
false},
22 {
"SingleAxisPacking",
true}
IBackendInternal::IBackendContextPtr CreateBackendContext(const IRuntime::CreationOptions &) const override
Create the runtime context of the backend.
std::unique_ptr< ICustomAllocator > GetDefaultAllocator() const override
Returns the default memory allocator for the backend.
IBackendInternal::IMemoryManagerUniquePtr CreateMemoryManager() const override
static const BackendId & GetIdStatic()
std::unique_ptr< IWorkloadFactory > IWorkloadFactoryPtr
Struct for the users to pass backend specific options.
std::vector< BackendOptions > ModelOptions
void RegisterTensorHandleFactories(class TensorHandleFactoryRegistry ®istry) override
(Optional) Register TensorHandleFactories Either this method or CreateMemoryManager() and IWorkloadFa...
IBackendInternal::IBackendProfilingContextPtr CreateBackendProfilingContext(const IRuntime::CreationOptions &, IBackendProfilingPtr &backendProfiling) override
Create context specifically used for profiling interaction from backends.
std::shared_ptr< IMemoryManager > IMemoryManagerSharedPtr
Copyright (c) 2021 ARM Limited and Contributors.
std::unique_ptr< IMemoryManager > IMemoryManagerUniquePtr
const BackendId & GetId() const override
IBackendInternal::IBackendSpecificModelContextPtr CreateBackendSpecificModelContext(const ModelOptions &modelOptions) const override
std::shared_ptr< IBackendModelContext > IBackendSpecificModelContextPtr
The SubgraphView class represents a subgraph of a Graph.
std::shared_ptr< arm::pipe::IBackendProfilingContext > IBackendProfilingContextPtr
This is the bridge between backend and backend profiling we'll keep it in the backend namespace.
BackendOptions BackendCapabilities
const BackendCapabilities cpuAccCapabilities("CpuAcc", { {"NonConstWeights", false}, {"AsyncExecution", false}, {"ProtectedContentAllocation", false}, {"ConstantTensorsAsInputs", true}, {"PreImportIOTensors", false}, {"ExternallyManagedMemory", true}, {"MultiAxisPacking", false}, {"SingleAxisPacking", true} })
BackendCapabilities GetCapabilities() const override
Returns a BackendCapability if the backend lists the capability The BackendCapability must then be in...
std::shared_ptr< ILayerSupport > ILayerSupportSharedPtr
OptimizationViews OptimizeSubgraphView(const SubgraphView &subgraph, const ModelOptions &modelOptions) const override
IBackendInternal::ILayerSupportSharedPtr GetLayerSupport() const override
std::unique_ptr< IBackendContext > IBackendContextPtr
std::unique_ptr< arm::pipe::IBackendProfiling > IBackendProfilingPtr
std::vector< ITensorHandleFactory::FactoryId > GetHandleFactoryPreferences() const override
(Optional) Returns a vector of supported TensorHandleFactory ids in preference order.
IWorkloadFactoryPtr CreateWorkloadFactory(const IBackendInternal::IMemoryManagerSharedPtr &memoryManager=nullptr) const override