16 return "Arm/Cl/ImportTensorHandleFactory";
34 : m_ImportFlags(importFlags)
35 , m_ExportFlags(exportFlags)
40 const unsigned int* subTensorOrigin)
const override;
48 const bool IsMemoryManaged)
const override;
52 const bool IsMemoryManaged)
const override;
This factory creates ClImportTensorHandles that refer to imported memory tensors.
const FactoryId & GetId() const override
std::vector< Capability > GetCapabilities(const IConnectableLayer *layer, const IConnectableLayer *connectedLayer, CapabilityClass capabilityClass) override
std::unique_ptr< ITensorHandle > CreateTensorHandle(const TensorInfo &tensorInfo) const override
MemorySourceFlags GetExportFlags() const override
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
MemorySourceFlags GetImportFlags() const override
bool SupportsMapUnmap() const override
static const FactoryId & GetIdStatic()
static const FactoryId m_Id
bool SupportsSubTensors() const override
Interface for a layer that is connectable to other layers via InputSlots and OutputSlots.
Copyright (c) 2021 ARM Limited and Contributors.
CapabilityClass
Capability class to calculate in the GetCapabilities function so that only the capability in the scop...
unsigned int MemorySourceFlags
ITensorHandleFactory::FactoryId FactoryId
constexpr const char * ClImportTensorHandleFactoryId()