From f466d75f85938b96dd14675ec091193bdce12122 Mon Sep 17 00:00:00 2001 From: SiCongLi Date: Mon, 1 Mar 2021 15:26:18 +0000 Subject: Add QASYMM8_SIGNED support to graph examples via graph mutator Related to COMPMID-4279 Signed-off-by: SiCongLi Change-Id: I6c737536b4e614cc9975003acca766803f55bf0b Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5206 Tested-by: Arm Jenkins Reviewed-by: Georgios Pinitas Comments-Addressed: Arm Jenkins --- examples/graph_squeezenet.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'examples/graph_squeezenet.cpp') diff --git a/examples/graph_squeezenet.cpp b/examples/graph_squeezenet.cpp index 3d32794e8d..82d95143be 100644 --- a/examples/graph_squeezenet.cpp +++ b/examples/graph_squeezenet.cpp @@ -164,12 +164,13 @@ public: // Finalize graph GraphConfig config; - config.num_threads = common_params.threads; - config.use_tuner = common_params.enable_tuner; - config.tuner_mode = common_params.tuner_mode; - config.tuner_file = common_params.tuner_file; - config.mlgo_file = common_params.mlgo_file; - config.convert_to_uint8 = (common_params.data_type == DataType::QASYMM8); + config.num_threads = common_params.threads; + config.use_tuner = common_params.enable_tuner; + config.tuner_mode = common_params.tuner_mode; + config.tuner_file = common_params.tuner_file; + config.mlgo_file = common_params.mlgo_file; + config.use_synthetic_type = arm_compute::is_data_type_quantized(common_params.data_type); + config.synthetic_type = common_params.data_type; graph.finalize(common_params.target, config); -- cgit v1.2.1