aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/graph/INode.h
diff options
context:
space:
mode:
authorMichele Di Giorgio <michele.digiorgio@arm.com>2018-02-13 15:24:04 +0000
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:47:18 +0000
commitdde9ec96f471127e5b6d8dfaeffce024b6326f1a (patch)
tree3aa88c0dec625feeb9d17da825b87398cac6cc68 /arm_compute/graph/INode.h
parente3fba0afa892c66379da1e3d3843f2155a1fb29a (diff)
downloadComputeLibrary-dde9ec96f471127e5b6d8dfaeffce024b6326f1a.tar.gz
COMPMID-909: Enabling in-place computation for batchnormalization and activation at graph level
Change-Id: I84d4a212629b21794451ab5fb5c5b187b5e28f98 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/120127 Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Tested-by: Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute/graph/INode.h')
-rw-r--r--arm_compute/graph/INode.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/arm_compute/graph/INode.h b/arm_compute/graph/INode.h
index 56b50b9424..1969423074 100644
--- a/arm_compute/graph/INode.h
+++ b/arm_compute/graph/INode.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017 ARM Limited.
+ * Copyright (c) 2017-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -58,6 +58,16 @@ public:
* @return The updated target hint
*/
TargetHint override_target_hint(TargetHint target_hint) const;
+ /** Method to check if the node supports in-place operations.
+ *
+ * @return True if the node supports in-place operations, false otherwise.
+ */
+ virtual bool supports_in_place() const;
+ /** Set the value of the _supports_in_place attribute.
+ *
+ * @param[in] value Boolean value to assign to _supports_in_place.
+ */
+ void set_supports_in_place(bool value);
protected:
/** Interface to be implement that override the hints
@@ -70,6 +80,7 @@ protected:
protected:
TargetHint _target_hint{ TargetHint::DONT_CARE };
+ bool _supports_in_place{ false };
};
} // namespace graph
} // namespace arm_compute