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