diff options
author | Tai Ly <tai.ly@arm.com> | 2023-11-13 20:18:14 +0000 |
---|---|---|
committer | Tai Ly <tai.ly@arm.com> | 2023-11-14 23:10:30 +0000 |
commit | fd8fde80452ba68a21de4de53517ebc4b4aac9ea (patch) | |
tree | 42b46a8b185ac984a12f5e834f15d909439dc812 /reference_model/test | |
parent | aee62afba99a74f772b97356fd4c18f3fdf37073 (diff) | |
download | reference_model-fd8fde80452ba68a21de4de53517ebc4b4aac9ea.tar.gz |
[reference_model] Add local_bound support
Add support for local_bound attributes.
Signed-off-by: Tai Ly <tai.ly@arm.com>
Change-Id: Ie1acb65ca2495fb7d1512bf120568c695635d631
Diffstat (limited to 'reference_model/test')
-rw-r--r-- | reference_model/test/model_runner_tests.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/reference_model/test/model_runner_tests.cpp b/reference_model/test/model_runner_tests.cpp index 71e26c9..2037b73 100644 --- a/reference_model/test/model_runner_tests.cpp +++ b/reference_model/test/model_runner_tests.cpp @@ -170,9 +170,11 @@ TEST_SUITE("model_runner") const int32_t input_zp = 0; const int32_t weight_zp = 0; + const bool local_bound = false; // Execution - auto status = tosa_run_conv2d(input, weight, bias, pad, stride, dilation, input_zp, weight_zp, output, {}); + auto status = + tosa_run_conv2d(input, weight, bias, pad, stride, dilation, input_zp, weight_zp, local_bound, output, {}); CHECK((status == tosa_status_valid)); // Compare results @@ -229,10 +231,11 @@ TEST_SUITE("model_runner") const int32_t input_zp = 0; const int32_t weight_zp = 0; + const bool local_bound = false; // Execution - auto status = - tosa_run_transpose_conv2d(input, weight, bias, out_pad, stride, out_shape, input_zp, weight_zp, output, {}); + auto status = tosa_run_transpose_conv2d(input, weight, bias, out_pad, stride, out_shape, input_zp, weight_zp, + local_bound, output, {}); CHECK((status == tosa_status_valid)); // Compare results @@ -288,12 +291,13 @@ TEST_SUITE("model_runner") const int32_t input_zp = 0; const int32_t weight_zp = 0; + const bool local_bound = false; // Execution func_ctx_t func_ctx; func_ctx.func_config.abs_mode = true; - auto status = - tosa_run_conv2d(input, weight, bias, pad, stride, dilation, input_zp, weight_zp, output, func_ctx); + auto status = tosa_run_conv2d(input, weight, bias, pad, stride, dilation, input_zp, weight_zp, local_bound, + output, func_ctx); CHECK((status == tosa_status_valid)); // Compare results |