diff options
Diffstat (limited to 'include/armnn/backends/Workload.hpp')
-rw-r--r-- | include/armnn/backends/Workload.hpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/armnn/backends/Workload.hpp b/include/armnn/backends/Workload.hpp index 7c1bda50bc..07e1abb392 100644 --- a/include/armnn/backends/Workload.hpp +++ b/include/armnn/backends/Workload.hpp @@ -54,6 +54,18 @@ public: profiling::ProfilingGuid GetGuid() const final { return m_Guid; } + // Replace input tensor handle with the given TensorHandle + void ReplaceInputTensorHandle(ITensorHandle* tensorHandle, unsigned int slot) override + { + m_Data.m_Inputs[slot] = tensorHandle; + } + + // Replace output tensor handle with the given TensorHandle + void ReplaceOutputTensorHandle(ITensorHandle* tensorHandle, unsigned int slot) override + { + m_Data.m_Outputs[slot] = tensorHandle; + } + protected: QueueDescriptor m_Data; const profiling::ProfilingGuid m_Guid; |