diff options
author | Tai Ly <tai.ly@arm.com> | 2023-05-12 21:42:19 +0000 |
---|---|---|
committer | Eric Kunze <eric.kunze@arm.com> | 2023-05-18 01:18:18 +0000 |
commit | 307392a4962cc659f7104867a56816a011694a44 (patch) | |
tree | 9957c65666b4be69e9920a4ae7e1925ad0f254d7 /reference_model/include | |
parent | 264f7faa59709ffa8117541f5d55c99c5dba967d (diff) | |
download | reference_model-307392a4962cc659f7104867a56816a011694a44.tar.gz |
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 <tai.ly@arm.com>
Change-Id: I7070ecc7ead2d2ea3375c44663d653c6772b88e0
Diffstat (limited to 'reference_model/include')
-rw-r--r-- | reference_model/include/func_config.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; |