MCPcopy Create free account
hub / github.com/ARM-software/armnn / CreateTensorHandle

Method CreateTensorHandle

src/backends/reference/RefWorkloadFactory.cpp:115–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115std::unique_ptr<ITensorHandle> RefWorkloadFactory::CreateTensorHandle(const TensorInfo& tensorInfo,
116 const bool isMemoryManaged) const
117{
118 if (isMemoryManaged)
119 {
120 return std::make_unique<RefTensorHandle>(tensorInfo, m_MemoryManager);
121 }
122 else
123 {
124 return std::make_unique<RefTensorHandle>(tensorInfo);
125 }
126}
127
128std::unique_ptr<ITensorHandle> RefWorkloadFactory::CreateTensorHandle(const TensorInfo& tensorInfo,
129 DataLayout dataLayout,

Calls 1

IgnoreUnusedFunction · 0.50