From f4261adf78bdb9f8b2d6f2970636125096c173cb Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Mon, 2 Dec 2019 11:58:19 +0000 Subject: COMPMID-2779: Add support for generating synthetic int8 graphs. Adds SyntheticDataTypeMutator, which is responsible for mutating graphs to int8 and thus enable performance analysis on a wider range of models. Change-Id: I9a00f0ae59421ab11952660f5115b5dcd9314aaf Signed-off-by: Georgios Pinitas Reviewed-on: https://review.mlplatform.org/c/2418 Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins Reviewed-by: Michele Di Giorgio --- arm_compute/graph/IGraphMutator.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'arm_compute/graph/IGraphMutator.h') diff --git a/arm_compute/graph/IGraphMutator.h b/arm_compute/graph/IGraphMutator.h index b80d37d274..94a28f63b1 100644 --- a/arm_compute/graph/IGraphMutator.h +++ b/arm_compute/graph/IGraphMutator.h @@ -34,6 +34,14 @@ class Graph; /** Graph mutator interface */ class IGraphMutator { +public: + /** Mutation type */ + enum class MutationType + { + IR, /** IR specific mutation */ + Backend /** Backend specific mutation */ + }; + public: /** Virtual Destructor */ virtual ~IGraphMutator() = default; @@ -42,6 +50,11 @@ public: * @param[in, out] g Graph to walk and mutate */ virtual void mutate(Graph &g) = 0; + /** Returns mutation type + * + * @return Mutation type enumeration + */ + virtual MutationType type() const = 0; /** Returns mutator name * * @return Mutator name -- cgit v1.2.1