aboutsummaryrefslogtreecommitdiff
path: root/applications/baremetal/models/ethos-u55-32/keyword_spotting_ds_cnn_large_clustered_int8
diff options
context:
space:
mode:
authorDavide Grohmann <davide.grohmann@arm.com>2022-08-08 17:12:08 +0200
committerDavide Grohmann <davide.grohmann@arm.com>2022-08-17 09:56:14 +0200
commit5508acb0c7803769b9bbda08762b232c13272bd9 (patch)
treecf62375a3d12e59c821318a13abaa510792fff69 /applications/baremetal/models/ethos-u55-32/keyword_spotting_ds_cnn_large_clustered_int8
parent06f954bb6dd56921f1fb38e3e36405e3f1c70ef9 (diff)
downloadethos-u-core-platform-5508acb0c7803769b9bbda08762b232c13272bd9.tar.gz
Generalize test models to be reused
Change-Id: I47705cfde2788fa74f8bbcd07100188e4690dbf2
Diffstat (limited to 'applications/baremetal/models/ethos-u55-32/keyword_spotting_ds_cnn_large_clustered_int8')
-rw-r--r--applications/baremetal/models/ethos-u55-32/keyword_spotting_ds_cnn_large_clustered_int8/input.h4
-rw-r--r--applications/baremetal/models/ethos-u55-32/keyword_spotting_ds_cnn_large_clustered_int8/model.h8
-rw-r--r--applications/baremetal/models/ethos-u55-32/keyword_spotting_ds_cnn_large_clustered_int8/output.h4
3 files changed, 9 insertions, 7 deletions
diff --git a/applications/baremetal/models/ethos-u55-32/keyword_spotting_ds_cnn_large_clustered_int8/input.h b/applications/baremetal/models/ethos-u55-32/keyword_spotting_ds_cnn_large_clustered_int8/input.h
index a9f3cc5..47f72f3 100644
--- a/applications/baremetal/models/ethos-u55-32/keyword_spotting_ds_cnn_large_clustered_int8/input.h
+++ b/applications/baremetal/models/ethos-u55-32/keyword_spotting_ds_cnn_large_clustered_int8/input.h
@@ -19,7 +19,7 @@
/******************************************************************************************************************
* Model: keyword_spotting_ds_cnn_large_clustered_int8
- * Source: https://github.com/ARM-software/ML-zoo/tree/master/models/keyword_spotting/ds_cnn_large/tflite_clustered_int8
+ * Source: https://github.com/ARM-software/ML-zoo/tree/22.02/models/keyword_spotting/ds_cnn_large/tflite_clustered_int8
* Hexdump: python3 -c 'import numpy;i=numpy.load("input.npy");i.tofile("input.bin");' && xxd -i input.bin > input.h
******************************************************************************************************************/
@@ -49,4 +49,4 @@ unsigned char inputData[] __attribute__((aligned(16), section("input_data_sec"))
0xe3, 0x42, 0x94, 0x7e, 0x6f, 0xf8, 0x8e, 0x1d, 0xcc, 0x4e, 0xf2, 0xce, 0xa5, 0x92, 0x54, 0xfe, 0xce, 0xf0, 0xf2,
0xb1, 0x2c, 0xa8, 0x6e, 0x5a, 0x16, 0xf4, 0xa8, 0x4f, 0xdb, 0x1f, 0x86, 0xe0, 0x7b, 0x87, 0xd6, 0x95, 0x54, 0x35,
0x56, 0x66, 0xb4, 0x15, 0x96, 0xca, 0xd3, 0xf0, 0x39, 0x18, 0xb6, 0x70, 0xde, 0x5e, 0xbd, 0x04, 0x0e, 0x12, 0xf8,
- 0xd1, 0x2f, 0xbf, 0xb1, 0xfd, 0x10, 0x40, 0x50, 0x72, 0xc4, 0x83, 0x03, 0xca, 0x05, 0xcd}; \ No newline at end of file
+ 0xd1, 0x2f, 0xbf, 0xb1, 0xfd, 0x10, 0x40, 0x50, 0x72, 0xc4, 0x83, 0x03, 0xca, 0x05, 0xcd};
diff --git a/applications/baremetal/models/ethos-u55-32/keyword_spotting_ds_cnn_large_clustered_int8/model.h b/applications/baremetal/models/ethos-u55-32/keyword_spotting_ds_cnn_large_clustered_int8/model.h
index 851df8d..4d9dc74 100644
--- a/applications/baremetal/models/ethos-u55-32/keyword_spotting_ds_cnn_large_clustered_int8/model.h
+++ b/applications/baremetal/models/ethos-u55-32/keyword_spotting_ds_cnn_large_clustered_int8/model.h
@@ -19,12 +19,14 @@
/******************************************************************************************************************
* Model: keyword_spotting_ds_cnn_large_clustered_int8
- * Source: https://github.com/ARM-software/ML-zoo/tree/master/models/keyword_spotting/ds_cnn_large/tflite_clustered_int8
+ * Source: https://github.com/ARM-software/ML-zoo/tree/22.02/models/keyword_spotting/ds_cnn_large/tflite_clustered_int8
* Vela optimisation: vela --accelerator-config ethos-u55-32 ds_cnn_clustered_int8.tflite
* Hexdump: xxd -i ds_cnn_clustered_int8_vela.tflite model.h
******************************************************************************************************************/
-#define TENSOR_ARENA_SIZE 300000
+#include <stddef.h>
+
+const size_t tensorArenaSize = 300000;
const char *modelName = "keyword_spotting_ds_cnn_large_clustered_int8";
@@ -23790,4 +23792,4 @@ unsigned char networkModelData[] __attribute__((aligned(16), section("network_mo
0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x56, 0x65, 0x6c, 0x61, 0x20, 0x4f, 0x70, 0x74, 0x69, 0x6d, 0x69, 0x73, 0x65,
0x64, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x10, 0x00, 0x0f, 0x00, 0x04, 0x00,
0x00, 0x00, 0x08, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x20, 0x07, 0x00, 0x00, 0x00, 0x65, 0x74, 0x68, 0x6f, 0x73, 0x2d, 0x75, 0x00}; \ No newline at end of file
+ 0x20, 0x07, 0x00, 0x00, 0x00, 0x65, 0x74, 0x68, 0x6f, 0x73, 0x2d, 0x75, 0x00};
diff --git a/applications/baremetal/models/ethos-u55-32/keyword_spotting_ds_cnn_large_clustered_int8/output.h b/applications/baremetal/models/ethos-u55-32/keyword_spotting_ds_cnn_large_clustered_int8/output.h
index 4b9689f..44e333d 100644
--- a/applications/baremetal/models/ethos-u55-32/keyword_spotting_ds_cnn_large_clustered_int8/output.h
+++ b/applications/baremetal/models/ethos-u55-32/keyword_spotting_ds_cnn_large_clustered_int8/output.h
@@ -19,10 +19,10 @@
/******************************************************************************************************************
* Model: keyword_spotting_ds_cnn_large_clustered_int8
- * Source: https://github.com/ARM-software/ML-zoo/tree/master/models/keyword_spotting/ds_cnn_large/tflite_clustered_int8
+ * Source: https://github.com/ARM-software/ML-zoo/tree/22.02/models/keyword_spotting/ds_cnn_large/tflite_clustered_int8
* Hexdump: python3 -c 'import numpy;i=numpy.load("output.npy");i.tofile("output.bin");' && xxd -i output.bin > output.h
******************************************************************************************************************/
unsigned char expectedOutputData[] __attribute__((
aligned(16),
- section("expected_output_data_sec"))) = {0x80, 0x3d, 0x80, 0x80, 0x80, 0x80, 0x82, 0x80, 0x80, 0x80, 0x80, 0xc1}; \ No newline at end of file
+ section("expected_output_data_sec"))) = {0x80, 0x3d, 0x80, 0x80, 0x80, 0x80, 0x82, 0x80, 0x80, 0x80, 0x80, 0xc1};