Browse Source

Merge pull request 'tflite application licence small modification' (#25) from Gumeijie/xiuos:gmj_work into master

crypto_algorithm
leebaok 1 year ago
parent
commit
3ba05d0a71
  1. 2
      applications/connection_demo/zigbee_demo/zigbee_receive_demo.c
  2. 2
      applications/connection_demo/zigbee_demo/zigbee_send_demo.c
  3. 9
      applications/tflite_mnist/digit.h
  4. 9
      applications/tflite_mnist/mnistapp.cpp
  5. 10
      applications/tflite_mnist/mnistmain.c
  6. 9
      applications/tflite_mnist/model.h
  7. 9
      applications/tflite_mnist/tools/mnist-c-digit.py
  8. 9
      applications/tflite_mnist/tools/mnist-c-model.py
  9. 9
      applications/tflite_mnist/tools/mnist-inference.py
  10. 9
      applications/tflite_mnist/tools/mnist-train.py
  11. 2
      framework/connection/Adapter/include/xs_adapter_zigbee.h
  12. 2
      framework/connection/Adapter/zigbee/xs_adaper_zigbee_register.c
  13. 2
      framework/connection/Adapter/zigbee/xs_adapter_zigbee.c

2
applications/connection_demo/zigbee_demo/zigbee_receive_demo.c

@ -15,7 +15,7 @@
* @brief: using zigbee to receive message
* @version: 1.0
* @author: AIIT XUOS Lab
* @date: 2020/4/25
* @date: 2021/4/30
*
*/
#include <xs_adapter_zigbee.h>

2
applications/connection_demo/zigbee_demo/zigbee_send_demo.c

@ -15,7 +15,7 @@
* @brief: using zigbee to send message
* @version: 1.0
* @author: AIIT XUOS Lab
* @date: 2020/4/25
* @date: 2021/4/30
*
*/
#include <xs_adapter_zigbee.h>

9
applications/tflite_mnist/digit.h

@ -9,6 +9,15 @@
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
* See the Mulan PSL v2 for more details.
*/
/**
* @file: digit.h
* @brief: store digits in this file
* @version: 1.0
* @author: AIIT XUOS Lab
* @date: 2021/4/30
*
*/
const float mnist_digit[] = {
0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00,
0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00,

9
applications/tflite_mnist/mnistapp.cpp

@ -9,6 +9,15 @@
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
* See the Mulan PSL v2 for more details.
*/
/**
* @file: mnistapp.cpp
* @brief: mnist function
* @version: 1.0
* @author: AIIT XUOS Lab
* @date: 2021/4/30
*
*/
#include <xiuos.h>
#include "tensorflow/lite/micro/all_ops_resolver.h"

10
applications/tflite_mnist/mnistmain.c

@ -9,6 +9,16 @@
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
* See the Mulan PSL v2 for more details.
*/
/**
* @file: mnistmain.c
* @brief: start mnist function
* @version: 1.0
* @author: AIIT XUOS Lab
* @date: 2021/4/30
*
*/
#include <xiuos.h>
void mnist_app(void);

9
applications/tflite_mnist/model.h

@ -9,6 +9,15 @@
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
* See the Mulan PSL v2 for more details.
*/
/**
* @file: model.h
* @brief: store model weights in this file
* @version: 1.0
* @author: AIIT XUOS Lab
* @date: 2021/4/30
*
*/
unsigned char mnist_model[] = {
0x1c, 0x00, 0x00, 0x00, 0x54, 0x46, 0x4c, 0x33, 0x14, 0x00, 0x20, 0x00,
0x04, 0x00, 0x08, 0x00, 0x0c, 0x00, 0x10, 0x00, 0x14, 0x00, 0x00, 0x00,

9
applications/tflite_mnist/tools/mnist-c-digit.py

@ -1,3 +1,4 @@
#!/usr/bin/env python3
# ==========================================================================================
# Copyright (c) 2020 AIIT XUOS Lab
# XiOS is licensed under Mulan PSL v2.
@ -8,8 +9,14 @@
# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
# See the Mulan PSL v2 for more details.
# @file: mnist-c-digit.py
# @brief: print image digit at command line
# @version: 1.0
# @author: AIIT XUOS Lab
# @date: 2021/4/30
# ==========================================================================================
#!/usr/bin/env python3
import tensorflow as tf

9
applications/tflite_mnist/tools/mnist-c-model.py

@ -1,3 +1,4 @@
#!/usr/bin/env python3
# ==========================================================================================
# Copyright (c) 2020 AIIT XUOS Lab
# XiOS is licensed under Mulan PSL v2.
@ -8,8 +9,14 @@
# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
# See the Mulan PSL v2 for more details.
# @file: mnist-c-model.py
# @brief: open file path and load model
# @version: 1.0
# @author: AIIT XUOS Lab
# @date: 2021/4/30
# ==========================================================================================
#!/usr/bin/env python3
#tflite_file_path = 'mnist-default-quan.tflite'
tflite_file_path = 'mnist.tflite'

9
applications/tflite_mnist/tools/mnist-inference.py

@ -1,3 +1,4 @@
#!/usr/bin/env python3
# ==========================================================================================
# Copyright (c) 2020 AIIT XUOS Lab
# XiOS is licensed under Mulan PSL v2.
@ -8,8 +9,14 @@
# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
# See the Mulan PSL v2 for more details.
# @file: mnist-inference.py
# @brief: load data amd start model omferemce
# @version: 1.0
# @author: AIIT XUOS Lab
# @date: 2021/4/30
# ==========================================================================================
#!/usr/bin/env python3
import tensorflow as tf

9
applications/tflite_mnist/tools/mnist-train.py

@ -1,3 +1,4 @@
#!/usr/bin/env python3
# ==========================================================================================
# Copyright (c) 2020 AIIT XUOS Lab
# XiOS is licensed under Mulan PSL v2.
@ -8,8 +9,14 @@
# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
# See the Mulan PSL v2 for more details.
# @file: mnist-train.py
# @brief: model training
# @version: 1.0
# @author: AIIT XUOS Lab
# @date: 2021/4/30
# ==========================================================================================
#!/usr/bin/env python3
import os
import tensorflow as tf

2
framework/connection/Adapter/include/xs_adapter_zigbee.h

@ -15,7 +15,7 @@
* @brief: head file
* @version: 1.0
* @author: AIIT XUOS Lab
* @date: 2020/4/25
* @date: 2021/4/25
*
*/
#ifndef XS_ADAPTER_ZIGBEE_H

2
framework/connection/Adapter/zigbee/xs_adaper_zigbee_register.c

@ -15,7 +15,7 @@
* @brief: register zigbee in initialization
* @version: 1.0
* @author: AIIT XUOS Lab
* @date: 2020/4/25
* @date: 2021/4/30
*
*/
#include <xs_adapter_zigbee.h>

2
framework/connection/Adapter/zigbee/xs_adapter_zigbee.c

@ -15,7 +15,7 @@
* @brief: zigbee open close function
* @version: 1.0
* @author: AIIT XUOS Lab
* @date: 2020/4/25
* @date: 2021/4/30
*
*/

Loading…
Cancel
Save