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 --- src/graph/mutators/InPlaceOperationMutator.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/graph/mutators/InPlaceOperationMutator.cpp') diff --git a/src/graph/mutators/InPlaceOperationMutator.cpp b/src/graph/mutators/InPlaceOperationMutator.cpp index 07e3ecf2c7..ef4ca47e48 100644 --- a/src/graph/mutators/InPlaceOperationMutator.cpp +++ b/src/graph/mutators/InPlaceOperationMutator.cpp @@ -35,6 +35,11 @@ const char *InPlaceOperationMutator::name() return "InPlaceOperationMutator"; } +IGraphMutator::MutationType InPlaceOperationMutator::type() const +{ + return IGraphMutator::MutationType::Backend; +} + void InPlaceOperationMutator::mutate(Graph &g) { std::set in_place_nodes = { NodeType::BatchNormalizationLayer, NodeType::ActivationLayer }; -- cgit v1.2.1