From 307392a4962cc659f7104867a56816a011694a44 Mon Sep 17 00:00:00 2001 From: Tai Ly Date: Fri, 12 May 2023 21:42:19 +0000 Subject: Add abs calculations under precise_mode This adds a second run of reference model under precise_mode when test_desc.json contains a "compliance" dictionary which contains a "mode" entry with value "dot product". In this second run, abs_mode will be set to true, which causes: 1. evaluation will take absolute values of inputs for these operators: conv2d, conv3d, depthwise_conv2d, fully_connected, matmul, transpose_conv2d, fft2d, rfft2d reduce_sum, avg_pool2d 2. output files will have prefix "bounds_" prepended to them Signed-off-by: Tai Ly Change-Id: I7070ecc7ead2d2ea3375c44663d653c6772b88e0 --- reference_model/include/func_config.h | 1 + 1 file changed, 1 insertion(+) (limited to 'reference_model/include/func_config.h') diff --git a/reference_model/include/func_config.h b/reference_model/include/func_config.h index b92845b..900ebab 100644 --- a/reference_model/include/func_config.h +++ b/reference_model/include/func_config.h @@ -49,6 +49,7 @@ struct func_config_t uint32_t dump_intermediates = 0; std::string fp_format = "0.5"; uint32_t precise_mode = 0; + bool abs_mode = 0; // set in main as second run of precise_mode bool float_is_big_endian = false; // Set in arith_util.h by float_is_big_endian() tosa_level_t tosa_level; -- cgit v1.2.1