You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by gu...@apache.org on 2023/01/13 21:37:48 UTC

[tvm] 02/03: Use int32 addition instead

This is an automated email from the ASF dual-hosted git repository.

guberti pushed a commit to branch acc-tests-1
in repository https://gitbox.apache.org/repos/asf/tvm.git

commit f0ff148c8e06aac9585e94d1a0b9615d71807a08
Author: Gavin Uberti <ga...@gmail.com>
AuthorDate: Fri Jan 13 13:04:10 2023 -0800

    Use int32 addition instead
---
 vww/modified.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vww/modified.c b/vww/modified.c
index 0060e5f867..84701c5e47 100644
--- a/vww/modified.c
+++ b/vww/modified.c
@@ -30847,7 +30847,7 @@ TVM_DLL int32_t tvmgen_default_fused_nn_conv2d_add_cast_multiply_add_right_shift
           int32_t cse_var_138 = (cse_var_139 + 1);
           int32_t cse_var_137 = (((cse_var_140 + (ax2_outer * 64)) + (ax2_inner * 8)) + cse_var_139);
           int32_t cse_var_136 = (((cse_var_140 + (ax2_outer * 256)) + (ax3_outer * 64)) + (ax2_inner * 2));
-          int64_t sum_0 = ((int64_t)((int32_t*)conv)[cse_var_136]) + ((int64_t)((int32_t*)bias_8070086)[cse_var_139]);
+          int32_t sum_0 = ((int32_t*)conv)[cse_var_136] + ((int32_t*)bias_8070086)[cse_var_139];
           int32_t __1 = (
                             (int32_t) (
                                 (
@@ -30860,7 +30860,7 @@ TVM_DLL int32_t tvmgen_default_fused_nn_conv2d_add_cast_multiply_add_right_shift
           int32_t requant_0 = __ssat(__1 - 128, 8);
           ((int16_t*)T_subtract)[cse_var_137] = (((int16_t) requant_0) - (int16_t)-128);
 
-          int64_t sum_1 = ((int64_t)((int32_t*)conv)[(cse_var_136 + 1)]) + ((int64_t)((int32_t*)bias_8070086)[cse_var_138]);
+          int32_t sum_1 = ((int32_t*)conv)[(cse_var_136 + 1)] + ((int32_t*)bias_8070086)[cse_var_138];
           int32_t __7 = (
                             (int32_t)(
                                 (