From 52fddd00d0eb547d41074046c9f587a3a0679298 Mon Sep 17 00:00:00 2001 From: Lior Dekel Date: Mon, 4 Oct 2021 19:15:24 +0300 Subject: NPU configuration support update in relevant apps. Bare metal app - added all the configurations for the different NPUs. FreeRTOS app and driver_unit_conv test - excluded all NPU configurations except ethos-u55-128. Change-Id: I6f69526613cd18c572af1186e5997816fad246b4 --- .../keyword_spotting_dnn_medium_int8/input.h | 78 ++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 applications/baremetal/models/ethos-u55-128/keyword_spotting_dnn_medium_int8/input.h (limited to 'applications/baremetal/models/ethos-u55-128/keyword_spotting_dnn_medium_int8/input.h') diff --git a/applications/baremetal/models/ethos-u55-128/keyword_spotting_dnn_medium_int8/input.h b/applications/baremetal/models/ethos-u55-128/keyword_spotting_dnn_medium_int8/input.h new file mode 100644 index 0000000..ab7c058 --- /dev/null +++ b/applications/baremetal/models/ethos-u55-128/keyword_spotting_dnn_medium_int8/input.h @@ -0,0 +1,78 @@ +/* + * Copyright (c) 2021 Arm Limited. All rights reserved. + * + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the License); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/****************************************************************************************************************** + * Model: keyword_spotting_dnn_medium_int8 + * Source: https://github.com/ARM-software/ML-zoo/tree/master/models/keyword_spotting/dnn_medium/tflite_int8 + * Hexdump: python3 -c 'import numpy;i=numpy.load("input.npy");i.tofile("input.bin");' && xxd -i input.bin > input.h + ******************************************************************************************************************/ + +unsigned char inputData[1000] __attribute__((aligned(16), section("input_data_sec"))) = { + 0x00, 0x00, 0x6f, 0x43, 0x00, 0x00, 0x8e, 0x42, 0x00, 0x00, 0x6b, 0x43, 0x00, 0x00, 0x27, 0x43, 0x00, 0x00, 0xb4, + 0x42, 0x00, 0x00, 0xc6, 0x42, 0x00, 0x00, 0x47, 0x43, 0x00, 0x00, 0x7a, 0x43, 0x00, 0x00, 0x3e, 0x43, 0x00, 0x00, + 0x6c, 0x42, 0x00, 0x00, 0x3b, 0x43, 0x00, 0x00, 0x78, 0x42, 0x00, 0x00, 0x9a, 0x42, 0x00, 0x00, 0x8c, 0x42, 0x00, + 0x00, 0x50, 0x43, 0x00, 0x00, 0x53, 0x43, 0x00, 0x00, 0x6e, 0x43, 0x00, 0x00, 0x17, 0x43, 0x00, 0x00, 0x48, 0x42, + 0x00, 0x00, 0xd2, 0x42, 0x00, 0x00, 0x62, 0x43, 0x00, 0x00, 0x1a, 0x43, 0x00, 0x00, 0x1b, 0x43, 0x00, 0x00, 0x60, + 0x41, 0x00, 0x00, 0x70, 0x42, 0x00, 0x00, 0x50, 0x42, 0x00, 0x00, 0x08, 0x43, 0x00, 0x00, 0x18, 0x43, 0x00, 0x00, + 0xce, 0x42, 0x00, 0x00, 0xae, 0x42, 0x00, 0x00, 0x96, 0x42, 0x00, 0x00, 0x38, 0x43, 0x00, 0x00, 0xcc, 0x42, 0x00, + 0x00, 0xc6, 0x42, 0x00, 0x00, 0x5e, 0x43, 0x00, 0x00, 0xe8, 0x41, 0x00, 0x00, 0xd6, 0x42, 0x00, 0x00, 0x6d, 0x43, + 0x00, 0x00, 0xd0, 0x42, 0x00, 0x00, 0x1a, 0x43, 0x00, 0x00, 0xbc, 0x42, 0x00, 0x00, 0x21, 0x43, 0x00, 0x00, 0x6c, + 0x42, 0x00, 0x00, 0x1f, 0x43, 0x00, 0x00, 0x3d, 0x43, 0x00, 0x00, 0x03, 0x43, 0x00, 0x00, 0x44, 0x43, 0x00, 0x00, + 0x2e, 0x43, 0x00, 0x00, 0x98, 0x41, 0x00, 0x00, 0x50, 0x42, 0x00, 0x00, 0x49, 0x43, 0x00, 0x00, 0x2f, 0x43, 0x00, + 0x00, 0xc0, 0x41, 0x00, 0x00, 0x3c, 0x42, 0x00, 0x00, 0x60, 0x41, 0x00, 0x00, 0x25, 0x43, 0x00, 0x00, 0xb4, 0x42, + 0x00, 0x00, 0xe8, 0x42, 0x00, 0x00, 0x28, 0x42, 0x00, 0x00, 0x74, 0x43, 0x00, 0x00, 0x07, 0x43, 0x00, 0x00, 0x09, + 0x43, 0x00, 0x00, 0x32, 0x43, 0x00, 0x00, 0xa0, 0x42, 0x00, 0x00, 0xfa, 0x42, 0x00, 0x00, 0x70, 0x41, 0x00, 0x00, + 0x20, 0x41, 0x00, 0x00, 0x0d, 0x43, 0x00, 0x00, 0x51, 0x43, 0x00, 0x00, 0x4f, 0x43, 0x00, 0x00, 0x50, 0x42, 0x00, + 0x00, 0xda, 0x42, 0x00, 0x00, 0x7e, 0x43, 0x00, 0x00, 0x30, 0x41, 0x00, 0x00, 0x20, 0x43, 0x00, 0x00, 0x80, 0x3f, + 0x00, 0x00, 0x14, 0x42, 0x00, 0x00, 0x79, 0x43, 0x00, 0x00, 0x64, 0x42, 0x00, 0x00, 0x19, 0x43, 0x00, 0x00, 0x14, + 0x43, 0x00, 0x00, 0xfc, 0x42, 0x00, 0x00, 0x4c, 0x43, 0x00, 0x00, 0x48, 0x43, 0x00, 0x00, 0x68, 0x43, 0x00, 0x00, + 0x24, 0x43, 0x00, 0x00, 0x67, 0x43, 0x00, 0x00, 0x9e, 0x42, 0x00, 0x00, 0x20, 0x42, 0x00, 0x00, 0x09, 0x43, 0x00, + 0x00, 0x3d, 0x43, 0x00, 0x00, 0xc0, 0x41, 0x00, 0x00, 0x78, 0x43, 0x00, 0x00, 0x36, 0x43, 0x00, 0x00, 0x1c, 0x43, + 0x00, 0x00, 0x94, 0x42, 0x00, 0x00, 0x9e, 0x42, 0x00, 0x00, 0x13, 0x43, 0x00, 0x00, 0x1a, 0x43, 0x00, 0x00, 0x4c, + 0x43, 0x00, 0x00, 0x1c, 0x43, 0x00, 0x00, 0x50, 0x42, 0x00, 0x00, 0xc6, 0x42, 0x00, 0x00, 0x3d, 0x43, 0x00, 0x00, + 0x1e, 0x43, 0x00, 0x00, 0x38, 0x43, 0x00, 0x00, 0x49, 0x43, 0x00, 0x00, 0xa0, 0x40, 0x00, 0x00, 0xae, 0x42, 0x00, + 0x00, 0x6b, 0x43, 0x00, 0x00, 0x0e, 0x43, 0x00, 0x00, 0x76, 0x43, 0x00, 0x00, 0x40, 0x41, 0x00, 0x00, 0xd8, 0x42, + 0x00, 0x00, 0x66, 0x43, 0x00, 0x00, 0x68, 0x42, 0x00, 0x00, 0x55, 0x43, 0x00, 0x00, 0x6b, 0x43, 0x00, 0x00, 0x3b, + 0x43, 0x00, 0x00, 0x46, 0x43, 0x00, 0x00, 0x88, 0x41, 0x00, 0x00, 0x8a, 0x42, 0x00, 0x00, 0x8a, 0x42, 0x00, 0x00, + 0xf0, 0x42, 0x00, 0x00, 0x5e, 0x43, 0x00, 0x00, 0x7c, 0x42, 0x00, 0x00, 0x50, 0x42, 0x00, 0x00, 0x00, 0x41, 0x00, + 0x00, 0x18, 0x42, 0x00, 0x00, 0x4d, 0x43, 0x00, 0x00, 0x44, 0x42, 0x00, 0x00, 0x3e, 0x43, 0x00, 0x00, 0xe0, 0x42, + 0x00, 0x00, 0xc0, 0x42, 0x00, 0x00, 0x9e, 0x42, 0x00, 0x00, 0xb8, 0x41, 0x00, 0x00, 0x70, 0x43, 0x00, 0x00, 0xc6, + 0x42, 0x00, 0x00, 0x40, 0x41, 0x00, 0x00, 0xb8, 0x41, 0x00, 0x00, 0x8a, 0x42, 0x00, 0x00, 0x5a, 0x43, 0x00, 0x00, + 0x30, 0x43, 0x00, 0x00, 0x2e, 0x43, 0x00, 0x00, 0x22, 0x43, 0x00, 0x00, 0x3b, 0x43, 0x00, 0x00, 0xd0, 0x42, 0x00, + 0x00, 0x4a, 0x43, 0x00, 0x00, 0xb8, 0x42, 0x00, 0x00, 0x5b, 0x43, 0x00, 0x00, 0xe8, 0x41, 0x00, 0x00, 0x94, 0x42, + 0x00, 0x00, 0x1f, 0x43, 0x00, 0x00, 0x80, 0x41, 0x00, 0x00, 0x1f, 0x43, 0x00, 0x00, 0x2c, 0x42, 0x00, 0x00, 0x20, + 0x41, 0x00, 0x00, 0x70, 0x42, 0x00, 0x00, 0x82, 0x42, 0x00, 0x00, 0x30, 0x41, 0x00, 0x00, 0xf8, 0x42, 0x00, 0x00, + 0xb8, 0x41, 0x00, 0x00, 0x34, 0x43, 0x00, 0x00, 0x00, 0x41, 0x00, 0x00, 0x40, 0x42, 0x00, 0x00, 0x60, 0x43, 0x00, + 0x00, 0x7c, 0x43, 0x00, 0x00, 0x48, 0x42, 0x00, 0x00, 0x17, 0x43, 0x00, 0x00, 0x30, 0x42, 0x00, 0x00, 0xd2, 0x42, + 0x00, 0x00, 0x0a, 0x43, 0x00, 0x00, 0xdc, 0x42, 0x00, 0x00, 0x90, 0x42, 0x00, 0x00, 0xc8, 0x41, 0x00, 0x00, 0x24, + 0x43, 0x00, 0x00, 0xe0, 0x40, 0x00, 0x00, 0xe8, 0x41, 0x00, 0x00, 0xdc, 0x42, 0x00, 0x00, 0x6c, 0x43, 0x00, 0x00, + 0x65, 0x43, 0x00, 0x00, 0x10, 0x41, 0x00, 0x00, 0x1c, 0x43, 0x00, 0x00, 0x2c, 0x42, 0x00, 0x00, 0xb0, 0x42, 0x00, + 0x00, 0x60, 0x42, 0x00, 0x00, 0x86, 0x42, 0x00, 0x00, 0x25, 0x43, 0x00, 0x00, 0x94, 0x42, 0x00, 0x00, 0x40, 0x42, + 0x00, 0x00, 0x2b, 0x43, 0x00, 0x00, 0x8a, 0x42, 0x00, 0x00, 0xf6, 0x42, 0x00, 0x00, 0x69, 0x43, 0x00, 0x00, 0xfa, + 0x42, 0x00, 0x00, 0x69, 0x43, 0x00, 0x00, 0x05, 0x43, 0x00, 0x00, 0xca, 0x42, 0x00, 0x00, 0x80, 0x41, 0x00, 0x00, + 0x1c, 0x42, 0x00, 0x00, 0x8c, 0x42, 0x00, 0x00, 0x60, 0x42, 0x00, 0x00, 0xf0, 0x41, 0x00, 0x00, 0x4d, 0x43, 0x00, + 0x00, 0x11, 0x43, 0x00, 0x00, 0xda, 0x42, 0x00, 0x00, 0x75, 0x43, 0x00, 0x00, 0x19, 0x43, 0x00, 0x00, 0x08, 0x43, + 0x00, 0x00, 0xfc, 0x42, 0x00, 0x00, 0xb0, 0x41, 0x00, 0x00, 0x96, 0x42, 0x00, 0x00, 0x28, 0x43, 0x00, 0x00, 0x34, + 0x43, 0x00, 0x00, 0x2a, 0x43, 0x00, 0x00, 0x64, 0x42, 0x00, 0x00, 0x1c, 0x43, 0x00, 0x00, 0x20, 0x41, 0x00, 0x00, + 0x60, 0x41, 0x00, 0x00, 0x70, 0x41, 0x00, 0x00, 0x90, 0x42, 0x00, 0x00, 0x29, 0x43, 0x00, 0x00, 0x07, 0x43, 0x00, + 0x00, 0x33, 0x43, 0x00, 0x00, 0x6f, 0x43, 0x00, 0x00, 0xd8, 0x41, 0x00, 0x00, 0xc6, 0x42, 0x00, 0x00, 0x10, 0x42, + 0x00, 0x00, 0xfc, 0x42, 0x00, 0x00, 0x88, 0x41, 0x00, 0x00, 0x20, 0x43, 0x00, 0x00, 0x1c, 0x42, 0x00, 0x00, 0x26, + 0x43, 0x00, 0x00, 0x13, 0x43, 0x00, 0x00, 0x24, 0x42, 0x00, 0x00, 0x53, 0x43, 0x00, 0x00, 0xc2, 0x42, 0x00, 0x00, + 0x30, 0x43, 0x00, 0x00, 0xca, 0x42, 0x00, 0x00, 0x43, 0x43, 0x00, 0x00, 0x38, 0x42, 0x00, 0x00, 0x80, 0x40, 0x00, + 0x00, 0x48, 0x42, 0x00, 0x00, 0x0e, 0x43, 0x00, 0x00, 0x36, 0x43, 0x00, 0x00, 0x40, 0x41, 0x00, 0x00, 0xa6, 0x42, + 0x00, 0x00, 0x84, 0x42, 0x00, 0x00, 0x33, 0x43, 0x00, 0x00, 0x60, 0x42}; \ No newline at end of file -- cgit v1.2.1