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 a20e0abafde19ba26d8aa466ef9319feffcc8fcd
Author: Gavin Uberti <[email protected]>
AuthorDate: Thu Jan 12 15:34:59 2023 -0800

    Add other layer 1 constants
---
 vww/modified.c | 51 ++++++++++++++++++++++++++++++++++++++++++++++++---
 1 file changed, 48 insertions(+), 3 deletions(-)

diff --git a/vww/modified.c b/vww/modified.c
index 9ede780863..449c1d03e6 100644
--- a/vww/modified.c
+++ b/vww/modified.c
@@ -30431,6 +30431,16 @@ TVM_DLL int32_t 
tvmgen_default_fused_nn_conv2d_add_cast_multiply_add_right_shift
   return 0;
 }
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+static const float __attribute__((section(".rodata.tvm"), aligned(16))) 
scale_25904487[8] = {
+    0x1.648e68p-123, 0x1.1e2896p-124, 0x1.08d814p-124, 0x1.a926c6p-124, 
0x1.dd6184p-126, 0x1.642844p-127, 0x1.807c98p-125, 0x1.03b942p-126
+};
+#ifdef __cplusplus
+}  // extern "C"
+#endif
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -30441,6 +30451,41 @@ static const int32_t 
__attribute__((section(".rodata.tvm"), aligned(16))) bias_8
 }  // extern "C"
 #endif
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+static const int16_t __attribute__((section(".rodata.tvm"), aligned(16))) 
kernel_3971177[216] = {
+    +0x0026, -0x005d, +0x0047, +0x0022, -0x007b, +0x0066, -0x0001, -0x007f,
+    +0x0057, +0x0003, -0x005d, +0x0057, -0x000e, -0x002a, +0x000d, +0x0015,
+    +0x0001, +0x0029, +0x001d, -0x0014, -0x0005, +0x0046, -0x0061, +0x001b,
+    +0x002f, -0x0058, +0x0001, -0x0039, -0x001f, +0x007f, -0x0060, -0x0002,
+    +0x002a, -0x005c, -0x0015, +0x0078, +0x0008, -0x002a, +0x0011, -0x0065,
+    +0x0005, +0x0046, -0x0033, +0x002d, +0x0010, +0x002f, -0x000f, -0x0020,
+    +0x003a, -0x002a, +0x001d, +0x001b, -0x000f, -0x000b, -0x0050, -0x0060,
+    -0x004c, -0x0023, -0x0050, -0x0045, +0x000c, +0x0001, -0x0024, +0x000a,
+    -0x0050, -0x000e, -0x000b, -0x0035, +0x0016, +0x0017, +0x0016, +0x000b,
+    -0x000c, +0x0009, +0x0019, +0x002c, +0x000c, +0x000b, +0x007f, +0x0017,
+    +0x0025, +0x0055, +0x0027, -0x0014, -0x0025, -0x0066, -0x004d, +0x005b,
+    +0x001c, -0x0008, +0x0032, +0x001a, +0x0024, -0x005e, -0x0048, -0x007f,
+    +0x0030, -0x0003, +0x0004, +0x0035, -0x0021, +0x001c, -0x005e, -0x0005,
+    +0x0026, -0x0006, +0x002d, +0x001a, -0x0022, +0x002f, +0x0011, -0x0047,
+    +0x0019, +0x0023, -0x005a, -0x001c, +0x0019, +0x001d, +0x0046, -0x0044,
+    -0x0032, -0x0034, -0x0025, -0x007f, -0x0029, -0x0035, +0x000f, +0x001f,
+    +0x0021, +0x000f, +0x004d, -0x0046, -0x003e, -0x0059, -0x0048, -0x001c,
+    +0x0049, -0x002c, -0x005b, -0x004e, -0x004a, -0x003b, -0x0008, +0x0009,
+    +0x004d, +0x006a, +0x002f, +0x0015, -0x0025, +0x003a, -0x003b, -0x0059,
+    -0x0073, +0x003a, +0x0056, -0x0016, +0x007f, +0x003a, +0x000b, -0x0003,
+    -0x0013, +0x000e, +0x0045, -0x0027, -0x0012, +0x0054, -0x0031, -0x0032,
+    +0x001b, -0x0036, +0x0021, +0x0031, -0x0039, -0x0005, -0x0005, -0x0040,
+    +0x0036, +0x0029, -0x003c, +0x0021, +0x001c, -0x0048, +0x0025, +0x005c,
+    -0x007f, +0x0047, +0x004f, -0x0079, -0x000f, +0x001a, -0x0003, -0x0026,
+    -0x0048, +0x0028, +0x0049, -0x007f, -0x0002, -0x000d, +0x0012, +0x001f,
+    +0x000b, +0x0011, -0x0012, -0x0023, -0x0060, -0x0021, -0x0048, +0x0012,
+    -0x0011, +0x002f, -0x001d, +0x0039, -0x002c, -0x0034, +0x002c, -0x0045
+};
+#ifdef __cplusplus
+}  // extern "C"
+#endif
 #ifdef __cplusplus
 extern "C"
 #endif
@@ -30542,13 +30587,13 @@ TVM_DLL int32_t 
tvmgen_default_fused_nn_conv2d_add_cast_multiply_add_right_shift
     for (int32_t kh = 0; kh < 3; ++kh) {
       for (int32_t kw = 0; kw < 3; ++kw) {
         for (int32_t oci = 0; oci < 2; ++oci) {
-          kernel_vec[((((oco * 54) + (kh * 18)) + (kw * 6)) + oci)] = 
((int16_t*)fused_constant_0)[((((kh * 72) + (kw * 24)) + (oco * 2)) + oci)];
+          kernel_vec[((((oco * 54) + (kh * 18)) + (kw * 6)) + oci)] = 
((int16_t*)kernel_3971177)[((((kh * 72) + (kw * 24)) + (oco * 2)) + oci)];
         }
         for (int32_t oci_1 = 0; oci_1 < 2; ++oci_1) {
-          kernel_vec[(((((oco * 54) + (kh * 18)) + (kw * 6)) + oci_1) + 2)] = 
((int16_t*)fused_constant_0)[(((((kh * 72) + (kw * 24)) + (oco * 2)) + oci_1) + 
8)];
+          kernel_vec[(((((oco * 54) + (kh * 18)) + (kw * 6)) + oci_1) + 2)] = 
((int16_t*)kernel_3971177)[(((((kh * 72) + (kw * 24)) + (oco * 2)) + oci_1) + 
8)];
         }
         for (int32_t oci_2 = 0; oci_2 < 2; ++oci_2) {
-          kernel_vec[(((((oco * 54) + (kh * 18)) + (kw * 6)) + oci_2) + 4)] = 
((int16_t*)fused_constant_0)[(((((kh * 72) + (kw * 24)) + (oco * 2)) + oci_2) + 
16)];
+          kernel_vec[(((((oco * 54) + (kh * 18)) + (kw * 6)) + oci_2) + 4)] = 
((int16_t*)kernel_3971177)[(((((kh * 72) + (kw * 24)) + (oco * 2)) + oci_2) + 
16)];
         }
       }
     }

Reply via email to