From 9a8c672dd6eb21448fbfb4b636104323d128de88 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Wed, 21 Mar 2018 17:52:35 +0000 Subject: 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 Reviewed-by: Anthony Barbier --- arm_compute/graph2/GraphContext.h | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) (limited to 'arm_compute/graph2/GraphContext.h') diff --git a/arm_compute/graph2/GraphContext.h b/arm_compute/graph2/GraphContext.h index 72ed96e7a0..f38e25dd61 100644 --- a/arm_compute/graph2/GraphContext.h +++ b/arm_compute/graph2/GraphContext.h @@ -56,26 +56,18 @@ public: GraphContext &operator=(const GraphContext &) = delete; /** Default move assignment operator */ GraphContext &operator=(GraphContext &&) = default; - /** Enables tuning + /** Graph configuration accessor * - * @param[in] enable_tuning Enables tuning if true - */ - void enable_tuning(bool enable_tuning); - /** Checks if tuning is enabled - * - * @return True if tuning is enabled else false - */ - bool is_tuning_enabled() const; - /** Enables memory management + * @note Every alteration has to be done before graph finalization * - * @param[in] enable_mm Enables mm if true + * @return The graph configuration */ - void enable_memory_managenent(bool enable_mm); - /** Checks if memory management is enabled + const GraphConfig &config() const; + /** Sets graph configuration * - * @return True if memory management is enabled else false + * @param[in] config Configuration to use */ - bool is_memory_management_enabled(); + void set_config(const GraphConfig &config); /** Inserts a memory manager context * * @param[in] memory_ctx Memory manage context @@ -94,8 +86,7 @@ public: void finalize(); private: - bool _tunable; /**< Specifies if the Graph should use a tunable object */ - bool _memory_managed; /**< Specifies if the Graph should use a memory managed */ + GraphConfig _config; /**< Graph configuration */ std::map _memory_managers; /**< Memory managers for each target */ }; } // namespace graph2 -- cgit v1.2.1