diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2018-05-01 15:26:20 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:51:17 +0000 |
commit | 5c2fb3f34462632b99331e2cc2d964c99fc1782b (patch) | |
tree | 16ee3edc412fcf7e3d20241ca8fb093d9774863d /arm_compute/graph/Workload.h | |
parent | cac13b1cfd593889271f8e2191be2039b8d88f36 (diff) | |
download | ComputeLibrary-5c2fb3f34462632b99331e2cc2d964c99fc1782b.tar.gz |
COMPMID-997: Add support for node's name in GraphAPI.
Change-Id: I0ca02e42807c1ad9afeffb7202a3556feb11442f
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/129701
Tested-by: Jenkins <bsgcomp@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Diffstat (limited to 'arm_compute/graph/Workload.h')
-rw-r--r-- | arm_compute/graph/Workload.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/arm_compute/graph/Workload.h b/arm_compute/graph/Workload.h index 11bb22ea9a..5ca9fd6c58 100644 --- a/arm_compute/graph/Workload.h +++ b/arm_compute/graph/Workload.h @@ -39,6 +39,27 @@ class INode; class Tensor; class Graph; +struct ExecutionTask; + +void execute_task(ExecutionTask &task); + +/** Task executor */ +class TaskExecutor final +{ +private: + /** Default constructor **/ + TaskExecutor(); + +public: + /** Task executor accessor + * + * @return Task executor instance + */ + static TaskExecutor &get(); + /** Function that is responsible for executing tasks */ + std::function<decltype(execute_task)> execute_function; +}; + /** Execution task * * Contains all the information required to execute a given task |