17 return "Arm/Cl/ImportTensorHandleFactory";
35 : m_ImportFlags(importFlags)
36 , m_ExportFlags(exportFlags)
41 const unsigned int* subTensorOrigin)
const override;
49 const bool IsMemoryManaged)
const override;
53 const bool IsMemoryManaged)
const override;
Interface for a layer that is connectable to other layers via InputSlots and OutputSlots.
MemorySourceFlags GetImportFlags() const override
CapabilityClass
Capability class to calculate in the GetCapabilities function so that only the capability in the scop...
static const FactoryId m_Id
MemorySourceFlags GetExportFlags() const override
unsigned int MemorySourceFlags
Copyright (c) 2021 ARM Limited and Contributors.
bool SupportsSubTensors() const override
constexpr const char * ClImportTensorHandleFactoryId()
ITensorHandleFactory::FactoryId FactoryId
std::unique_ptr< ITensorHandle > CreateSubTensorHandle(ITensorHandle &parent, const TensorShape &subTensorShape, const unsigned int *subTensorOrigin) const override
const FactoryId & GetId() const override
static const FactoryId & GetIdStatic()
This factory creates ClImportTensorHandles that refer to imported memory tensors. ...
std::vector< Capability > GetCapabilities(const IConnectableLayer *layer, const IConnectableLayer *connectedLayer, CapabilityClass capabilityClass) override
bool SupportsMapUnmap() const override
ClImportTensorHandleFactory(MemorySourceFlags importFlags, MemorySourceFlags exportFlags)
Create a tensor handle factory for tensors that will be imported or exported.
std::unique_ptr< ITensorHandle > CreateTensorHandle(const TensorInfo &tensorInfo) const override