diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2018-03-21 17:52:35 +0000 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:49:16 +0000 |
commit | 9a8c672dd6eb21448fbfb4b636104323d128de88 (patch) | |
tree | 345615b62b3941f2c2db442758fcc12269137156 /src/graph2/GraphContext.cpp | |
parent | 36a559e49a3d5b832b1cffd47f2298f452616bb9 (diff) | |
download | ComputeLibrary-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 'src/graph2/GraphContext.cpp')
-rw-r--r-- | src/graph2/GraphContext.cpp | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/src/graph2/GraphContext.cpp b/src/graph2/GraphContext.cpp index 88fc5216a4..08a7b68dce 100644 --- a/src/graph2/GraphContext.cpp +++ b/src/graph2/GraphContext.cpp @@ -29,28 +29,18 @@ namespace arm_compute namespace graph2 { GraphContext::GraphContext() - : _tunable(false), _memory_managed(false), _memory_managers() + : _config(), _memory_managers() { } -void GraphContext::enable_tuning(bool enable_tuning) +const GraphConfig &GraphContext::config() const { - _tunable = enable_tuning; + return _config; } -bool GraphContext::is_tuning_enabled() const +void GraphContext::set_config(const GraphConfig &config) { - return _tunable; -} - -void GraphContext::enable_memory_managenent(bool enable_mm) -{ - _memory_managed = enable_mm; -} - -bool GraphContext::is_memory_management_enabled() -{ - return _memory_managed; + _config = config; } bool GraphContext::insert_memory_management_ctx(MemoryManagerContext &&memory_ctx) |