From dde9ec96f471127e5b6d8dfaeffce024b6326f1a Mon Sep 17 00:00:00 2001 From: Michele Di Giorgio Date: Tue, 13 Feb 2018 15:24:04 +0000 Subject: 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 Tested-by: Jenkins --- arm_compute/graph/INode.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'arm_compute/graph/INode.h') 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 -- cgit v1.2.1