aboutsummaryrefslogtreecommitdiff
path: root/examples/graph_inception_v3.cpp
diff options
context:
space:
mode:
authorSiCongLi <sicong.li@arm.com>2021-03-01 15:26:18 +0000
committerSiCong Li <sicong.li@arm.com>2021-03-03 10:45:00 +0000
commitf466d75f85938b96dd14675ec091193bdce12122 (patch)
treeb4dcb0f1c5e2bf15ba129525d0271e48a9b0f2a6 /examples/graph_inception_v3.cpp
parent793daa138aee628bf80289191061ec8c81421bd2 (diff)
downloadComputeLibrary-f466d75f85938b96dd14675ec091193bdce12122.tar.gz
Add QASYMM8_SIGNED support to graph examples via graph mutator
Related to COMPMID-4279 Signed-off-by: SiCongLi <sicong.li@arm.com> Change-Id: I6c737536b4e614cc9975003acca766803f55bf0b Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5206 Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'examples/graph_inception_v3.cpp')
-rw-r--r--examples/graph_inception_v3.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/examples/graph_inception_v3.cpp b/examples/graph_inception_v3.cpp
index 8ceeb5c68e..928efb9124 100644
--- a/examples/graph_inception_v3.cpp
+++ b/examples/graph_inception_v3.cpp
@@ -22,6 +22,8 @@
* SOFTWARE.
*/
#include "arm_compute/graph.h"
+#include "arm_compute/core/Types.h"
+#include "arm_compute/core/Utils.h"
#include "support/ToolchainSupport.h"
#include "utils/CommonGraphOptions.h"
#include "utils/GraphUtils.h"
@@ -197,13 +199,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);
return true;