22 : m_MemoryManager(mgr)
29 unsigned int const* subTensorOrigin)
const override;
37 const bool IsMemoryManaged)
const override;
41 const bool IsMemoryManaged)
const override;
54 mutable std::shared_ptr<TosaRefMemoryManager> m_MemoryManager;
const FactoryId & GetId() const override
std::unique_ptr< ITensorHandle > CreateTensorHandle(const TensorInfo &tensorInfo) const override
MemorySourceFlags GetExportFlags() const override
TosaRefTensorHandleFactory(std::shared_ptr< TosaRefMemoryManager > mgr)
MemorySourceFlags GetImportFlags() const override
std::unique_ptr< ITensorHandle > CreateSubTensorHandle(ITensorHandle &parent, TensorShape const &subTensorShape, unsigned int const *subTensorOrigin) const override
static const FactoryId & GetIdStatic()
bool SupportsSubTensors() const override
Copyright (c) 2021 ARM Limited and Contributors.
MemorySource
Define the Memory Source to reduce copies.
unsigned int MemorySourceFlags
ITensorHandleFactory::FactoryId FactoryId
constexpr const char * TosaRefTensorHandleFactoryId()