aboutsummaryrefslogtreecommitdiff
path: root/include/armnn/IWorkingMemHandle.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/armnn/IWorkingMemHandle.hpp')
-rw-r--r--include/armnn/IWorkingMemHandle.hpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/armnn/IWorkingMemHandle.hpp b/include/armnn/IWorkingMemHandle.hpp
index bbc4913c59..62f71118eb 100644
--- a/include/armnn/IWorkingMemHandle.hpp
+++ b/include/armnn/IWorkingMemHandle.hpp
@@ -1,5 +1,5 @@
//
-// Copyright © 2021 Arm Ltd and Contributors. All rights reserved.
+// Copyright © 2022 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
@@ -13,6 +13,8 @@ using NetworkId = int;
namespace experimental
{
+struct ExecutionData;
+
struct WorkingMemDescriptor;
class IWorkingMemHandle
@@ -33,12 +35,14 @@ public:
/// IsAllocated returns true if the backing memory is currently allocated.
virtual bool IsAllocated() = 0;
- /// Get the WorkingMemDescriptor for a Layer.
- virtual WorkingMemDescriptor& GetWorkingMemDescriptor(LayerGuid id) = 0;
-
/// Get the WorkingMemDescriptor at an index. The WorkingMemDescriptors are stored in the same order as
/// the Workloads in a topologically sorted graph.
virtual WorkingMemDescriptor& GetWorkingMemDescriptorAt(unsigned int id) = 0;
+
+ /// Get the ExecutionData at an index.
+ /// The ExecutionData is paired with a BackendId to be able to call backend specific functions upon it.
+ /// The ExecutionData are stored in the same order as the Workloads in a topologically sorted graph.
+ virtual std::pair<BackendId, ExecutionData>& GetExecutionDataAt(unsigned int id) = 0;
};
} // end experimental namespace