|
25.11
|
This factory creates ClImportTensorHandles that refer to imported memory tensors. More...
#include <ClImportTensorHandleFactory.hpp>
Public Member Functions | |
| ClImportTensorHandleFactory (MemorySourceFlags importFlags, MemorySourceFlags exportFlags) | |
| Create a tensor handle factory for tensors that will be imported or exported. | |
| std::unique_ptr< ITensorHandle > | CreateSubTensorHandle (ITensorHandle &parent, const TensorShape &subTensorShape, const unsigned int *subTensorOrigin) const override |
| std::unique_ptr< ITensorHandle > | CreateTensorHandle (const TensorInfo &tensorInfo) const override |
| std::unique_ptr< ITensorHandle > | CreateTensorHandle (const TensorInfo &tensorInfo, DataLayout dataLayout) const override |
| std::unique_ptr< ITensorHandle > | CreateTensorHandle (const TensorInfo &tensorInfo, const bool IsMemoryManaged) const override |
| Utility Functions for backends which require TensorHandles to have unmanaged memory. | |
| std::unique_ptr< ITensorHandle > | CreateTensorHandle (const TensorInfo &tensorInfo, DataLayout dataLayout, const bool IsMemoryManaged) const override |
| const FactoryId & | GetId () const override |
| bool | SupportsSubTensors () const override |
| bool | SupportsMapUnmap () const override |
| MemorySourceFlags | GetExportFlags () const override |
| MemorySourceFlags | GetImportFlags () const override |
| std::vector< Capability > | GetCapabilities (const IConnectableLayer *layer, const IConnectableLayer *connectedLayer, CapabilityClass capabilityClass) override |
| Public Member Functions inherited from ITensorHandleFactory | |
| virtual | ~ITensorHandleFactory () |
| Some TensorHandleFactory decisions are deferred to run-time. | |
| virtual bool | SupportsInPlaceComputation () const |
Static Public Member Functions | |
| static const FactoryId & | GetIdStatic () |
Static Public Attributes | |
| static const FactoryId | m_Id |
| Static Public Attributes inherited from ITensorHandleFactory | |
| static const FactoryId | LegacyFactoryId = "armnn_legacy_factory" |
| static const FactoryId | DeferredFactoryId = "armnn_deferred_factory" |
| Use the workload factory to create the tensor handle. | |
Additional Inherited Members | |
| Public Types inherited from ITensorHandleFactory | |
| using | FactoryId = std::string |
This factory creates ClImportTensorHandles that refer to imported memory tensors.
Definition at line 22 of file ClImportTensorHandleFactory.hpp.
|
inline |
Create a tensor handle factory for tensors that will be imported or exported.
| importFlags | |
| exportFlags |
Definition at line 33 of file ClImportTensorHandleFactory.hpp.
|
overridevirtual |
Implements ITensorHandleFactory.
Definition at line 20 of file ClImportTensorHandleFactory.cpp.
References TensorShape::GetNumDimensions(), ITensorHandle::GetShape(), armnn::numeric_cast(), and armnn::PolymorphicDowncast().
|
overridevirtual |
Implements ITensorHandleFactory.
Definition at line 56 of file ClImportTensorHandleFactory.cpp.
References GetImportFlags().
Referenced by CreateTensorHandle(), and CreateTensorHandle().
|
overridevirtual |
Utility Functions for backends which require TensorHandles to have unmanaged memory.
These should be overloaded if required to facilitate direct import of input tensors and direct export of output tensors.
Reimplemented from ITensorHandleFactory.
Definition at line 72 of file ClImportTensorHandleFactory.cpp.
References CreateTensorHandle().
|
overridevirtual |
Implements ITensorHandleFactory.
Definition at line 63 of file ClImportTensorHandleFactory.cpp.
References GetImportFlags().
|
overridevirtual |
Reimplemented from ITensorHandleFactory.
Definition at line 82 of file ClImportTensorHandleFactory.cpp.
References CreateTensorHandle().
|
overridevirtual |
Reimplemented from ITensorHandleFactory.
Definition at line 124 of file ClImportTensorHandleFactory.cpp.
References armnn::FallbackImportDisabled, and armnn::IgnoreUnused().
|
overridevirtual |
Reimplemented from ITensorHandleFactory.
Definition at line 114 of file ClImportTensorHandleFactory.cpp.
|
overridevirtual |
Implements ITensorHandleFactory.
Definition at line 99 of file ClImportTensorHandleFactory.cpp.
References GetIdStatic().
|
static |
Definition at line 93 of file ClImportTensorHandleFactory.cpp.
References armnn::ClImportTensorHandleFactoryId().
Referenced by ClBackend::GetHandleFactoryPreferences(), and GetId().
|
overridevirtual |
Reimplemented from ITensorHandleFactory.
Definition at line 119 of file ClImportTensorHandleFactory.cpp.
Referenced by CreateTensorHandle(), and CreateTensorHandle().
|
overridevirtual |
Reimplemented from ITensorHandleFactory.
Definition at line 109 of file ClImportTensorHandleFactory.cpp.
|
overridevirtual |
Implements ITensorHandleFactory.
Definition at line 104 of file ClImportTensorHandleFactory.cpp.
|
static |
Definition at line 25 of file ClImportTensorHandleFactory.hpp.