24.02
|
Go to the documentation of this file.
20 class IConnectableLayer;
57 unsigned int const* subTensorOrigin)
const = 0;
68 const bool IsMemoryManaged)
const
76 const bool IsMemoryManaged)
const
100 return std::vector<Capability>();
Capability(CapabilityClass capabilityClass, bool value)
virtual bool SupportsMapUnmap() const
@ DirectCompatibility
No strategy has been defined. Used internally to verify integrity of optimizations.
virtual ~ITensorHandleFactory()
Some TensorHandleFactory decisions are deferred to run-time.
CapabilityClass
Capability class to calculate in the GetCapabilities function so that only the capability in the scop...
unsigned int MemorySourceFlags
virtual MemorySourceFlags GetExportFlags() const
static const FactoryId LegacyFactoryId
@ CopyToTarget
Source backends tensor data can be exported to destination backend tensor without copy.
virtual std::vector< Capability > GetCapabilities(const IConnectableLayer *layer, const IConnectableLayer *connectedLayer, CapabilityClass capabilityClass)
virtual std::unique_ptr< ITensorHandle > CreateSubTensorHandle(ITensorHandle &parent, TensorShape const &subTensorShape, unsigned int const *subTensorOrigin) const =0
static const FactoryId DeferredFactoryId
Use the workload factory to create the tensor handle.
ITensorHandleFactory::FactoryId FactoryId
virtual MemorySourceFlags GetImportFlags() const
virtual const FactoryId & GetId() const =0
Capability of the TensorHandleFactory.
virtual std::unique_ptr< ITensorHandle > CreateTensorHandle(const TensorInfo &tensorInfo) const =0
CapabilityClass m_CapabilityClass
virtual std::unique_ptr< ITensorHandle > CreateTensorHandle(const TensorInfo &tensorInfo, const bool IsMemoryManaged) const
Utility Functions for backends which require TensorHandles to have unmanaged memory.
void IgnoreUnused(Ts &&...)
@ ExportToTarget
Destination backend can work directly with tensors on source backend.
virtual bool SupportsInPlaceComputation() const
Copyright (c) 2021 ARM Limited and Contributors.
virtual bool SupportsSubTensors() const =0
Interface for a layer that is connectable to other layers via InputSlots and OutputSlots.
virtual std::unique_ptr< ITensorHandle > CreateTensorHandle(const TensorInfo &tensorInfo, DataLayout dataLayout, const bool IsMemoryManaged) const