aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/graph/ITensorAccessor.h
diff options
context:
space:
mode:
Diffstat (limited to 'arm_compute/graph/ITensorAccessor.h')
-rw-r--r--arm_compute/graph/ITensorAccessor.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/arm_compute/graph/ITensorAccessor.h b/arm_compute/graph/ITensorAccessor.h
index 96bd499573..a8818be2e5 100644
--- a/arm_compute/graph/ITensorAccessor.h
+++ b/arm_compute/graph/ITensorAccessor.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018-2019 Arm Limited.
+ * Copyright (c) 2018-2019,2021 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -45,6 +45,14 @@ public:
* @return True if access is successful else false
*/
virtual bool access_tensor(ITensor &tensor) = 0;
+ /** Returns true if the tensor data is being accessed
+ *
+ * @return True if the tensor data is being accessed by the accessor. False otherwise
+ */
+ virtual bool access_tensor_data()
+ {
+ return true;
+ }
};
using ITensorAccessorUPtr = std::unique_ptr<ITensorAccessor>;