diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2019-12-02 11:58:19 +0000 |
---|---|---|
committer | Michele Di Giorgio <michele.digiorgio@arm.com> | 2019-12-06 14:54:19 +0000 |
commit | f4261adf78bdb9f8b2d6f2970636125096c173cb (patch) | |
tree | a2cf7abd84787720bdc286f09422336691d6fa95 /src/graph/Utils.cpp | |
parent | 6f58b37a18cfade5dbec38638926f7bd368756d9 (diff) | |
download | ComputeLibrary-f4261adf78bdb9f8b2d6f2970636125096c173cb.tar.gz |
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 <georgios.pinitas@arm.com>
Reviewed-on: https://review.mlplatform.org/c/2418
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Diffstat (limited to 'src/graph/Utils.cpp')
-rw-r--r-- | src/graph/Utils.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/graph/Utils.cpp b/src/graph/Utils.cpp index 4c34dd85a5..3bf0caca7e 100644 --- a/src/graph/Utils.cpp +++ b/src/graph/Utils.cpp @@ -74,13 +74,17 @@ void force_target_to_graph(Graph &g, Target target) } } -PassManager create_default_pass_manager(Target target) +PassManager create_default_pass_manager(Target target, const GraphConfig &cfg) { PassManager pm; const bool is_target_gc = target == Target::GC; // Passes that mutate graph IR + if(cfg.convert_to_uint8) + { + pm.append(support::cpp14::make_unique<SyntheticDataTypeMutator>(), !is_target_gc); + } pm.append(support::cpp14::make_unique<NodeFusionMutator>(), !is_target_gc); pm.append(support::cpp14::make_unique<GroupedConvolutionMutator>()); pm.append(support::cpp14::make_unique<InPlaceOperationMutator>(), !is_target_gc); |