ArmNN
 20.05
OutputHandler.cpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #include "OutputHandler.hpp"
7 
11 
12 namespace armnn
13 {
14 
16 {
17  m_TensorInfo = tensorInfo;
18  m_bTensorInfoSet = true;
19 }
20 
21 void OutputHandler::CreateTensorHandles(const IWorkloadFactory& factory, const bool IsMemoryManaged)
22 {
23  m_TensorHandle = factory.CreateTensorHandle(m_TensorInfo, IsMemoryManaged);
24 }
25 
26 void OutputHandler::CreateTensorHandles(const ITensorHandleFactory& factory, const bool IsMemoryManaged)
27 {
28  m_TensorHandle = factory.CreateTensorHandle(m_TensorInfo, IsMemoryManaged);
29 }
30 
32 {
33  dataCollector.Push(m_TensorHandle.get(), m_TensorInfo);
34 }
35 
36 } // namespace armnn
Copyright (c) 2020 ARM Limited.
void CreateTensorHandles(const IWorkloadFactory &factory, const bool IsMemoryManaged=true)
Creates tensor handles used by the intermediate tensors.
void CollectWorkloadOutputs(WorkloadDataCollector &dataCollector) const
Fill the outputs for a given queue descriptor.
void Push(ITensorHandle *handle, const TensorInfo &info)
virtual std::unique_ptr< ITensorHandle > CreateTensorHandle(const TensorInfo &tensorInfo, const bool IsMemoryManaged=true) const =0
void SetTensorInfo(const TensorInfo &tensorInfo)
Sets the TensorInfo used by this output handler.
virtual std::unique_ptr< ITensorHandle > CreateTensorHandle(const TensorInfo &tensorInfo) const =0