aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/graph2/backends
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2018-03-21 17:52:35 +0000
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:49:16 +0000
commit9a8c672dd6eb21448fbfb4b636104323d128de88 (patch)
tree345615b62b3941f2c2db442758fcc12269137156 /arm_compute/graph2/backends
parent36a559e49a3d5b832b1cffd47f2298f452616bb9 (diff)
downloadComputeLibrary-9a8c672dd6eb21448fbfb4b636104323d128de88.tar.gz
COMPMID-1011: Create struct for the graph config parameters
Change-Id: I9c164a817c0cc5f264a5c71a59256dacc6314cb0 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/125456 Tested-by: Jenkins <bsgcomp@arm.com> Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'arm_compute/graph2/backends')
-rw-r--r--arm_compute/graph2/backends/Utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arm_compute/graph2/backends/Utils.h b/arm_compute/graph2/backends/Utils.h
index cc6f5163f2..bba75757eb 100644
--- a/arm_compute/graph2/backends/Utils.h
+++ b/arm_compute/graph2/backends/Utils.h
@@ -87,7 +87,7 @@ inline bool is_in_place_operation(void *input, void *output)
*/
inline std::shared_ptr<IMemoryManager> get_memory_manager(GraphContext &ctx, Target target)
{
- bool enabled = ctx.is_memory_management_enabled() && (ctx.memory_management_ctx(target) != nullptr);
+ bool enabled = ctx.config().use_function_memory_manager && (ctx.memory_management_ctx(target) != nullptr);
return enabled ? ctx.memory_management_ctx(target)->mm : nullptr;
}
} // namespace backends