code stringlengths 1 1.05M | repo_name stringlengths 6 83 | path stringlengths 3 242 | language stringclasses 222
values | license stringclasses 20
values | size int64 1 1.05M |
|---|---|---|---|---|---|
@charset "UTF-8";
/*
Flavor name: Custom (mini-custom)
Generated online - https://minicss.org/flavors
mini.css version: v3.0.1
*/
/*
Browsers resets and base typography.
*/
/* Core module CSS variable definitions */
:root {
--fore-color: #03234b;
--secondary-fore-color: #03234b;
--back-color: #ffffff;
-... | YifuLiu/AliOS-Things | components/cmsis/Device/ST/STM32U5xx/_htmresc/mini-st_2020.css | CSS | apache-2.0 | 57,898 |
/**************************************************************************//**
* @file cmsis_armcc.h
* @brief CMSIS compiler ARMCC (Arm Compiler 5) header file
* @version V5.1.0
* @date 08. May 2019
******************************************************************************/
/*
* Copyright (c) 200... | YifuLiu/AliOS-Things | components/cmsis/Include/cmsis_armcc.h | C | apache-2.0 | 28,132 |
/**************************************************************************//**
* @file cmsis_armclang.h
* @brief CMSIS compiler armclang (Arm Compiler 6) header file
* @version V5.2.0
* @date 08. May 2019
******************************************************************************/
/*
* Copyright (... | YifuLiu/AliOS-Things | components/cmsis/Include/cmsis_armclang.h | C | apache-2.0 | 45,899 |
/**************************************************************************//**
* @file cmsis_armclang_ltm.h
* @brief CMSIS compiler armclang (Arm Compiler 6) header file
* @version V1.2.0
* @date 08. May 2019
******************************************************************************/
/*
* Copyrig... | YifuLiu/AliOS-Things | components/cmsis/Include/cmsis_armclang_ltm.h | C | apache-2.0 | 55,224 |
/**************************************************************************//**
* @file cmsis_compiler.h
* @brief CMSIS compiler generic header file
* @version V5.1.0
* @date 09. October 2018
******************************************************************************/
/*
* Copyright (c) 2009-2018 A... | YifuLiu/AliOS-Things | components/cmsis/Include/cmsis_compiler.h | C | apache-2.0 | 9,481 |
/**************************************************************************//**
* @file cmsis_gcc.h
* @brief CMSIS compiler GCC header file
* @version V5.2.0
* @date 08. May 2019
******************************************************************************/
/*
* Copyright (c) 2009-2019 Arm Limited. A... | YifuLiu/AliOS-Things | components/cmsis/Include/cmsis_gcc.h | C | apache-2.0 | 62,627 |
/**************************************************************************//**
* @file cmsis_iccarm.h
* @brief CMSIS compiler ICCARM (IAR Compiler for Arm) header file
* @version V5.1.0
* @date 08. May 2019
******************************************************************************/
//------------... | YifuLiu/AliOS-Things | components/cmsis/Include/cmsis_iccarm.h | C | apache-2.0 | 28,163 |
/**************************************************************************//**
* @file cmsis_version.h
* @brief CMSIS Core(M) Version definitions
* @version V5.0.3
* @date 24. June 2019
******************************************************************************/
/*
* Copyright (c) 2009-2019 ARM Li... | YifuLiu/AliOS-Things | components/cmsis/Include/cmsis_version.h | C | apache-2.0 | 1,676 |
/**************************************************************************//**
* @file core_armv81mml.h
* @brief CMSIS Armv8.1-M Mainline Core Peripheral Access Layer Header File
* @version V1.0.0
* @date 15. March 2019
******************************************************************************/
/*... | YifuLiu/AliOS-Things | components/cmsis/Include/core_armv81mml.h | C | apache-2.0 | 168,772 |
/**************************************************************************//**
* @file core_armv8mbl.h
* @brief CMSIS Armv8-M Baseline Core Peripheral Access Layer Header File
* @version V5.0.8
* @date 12. November 2018
******************************************************************************/
/*... | YifuLiu/AliOS-Things | components/cmsis/Include/core_armv8mbl.h | C | apache-2.0 | 96,139 |
/**************************************************************************//**
* @file core_armv8mml.h
* @brief CMSIS Armv8-M Mainline Core Peripheral Access Layer Header File
* @version V5.1.0
* @date 12. September 2018
******************************************************************************/
/... | YifuLiu/AliOS-Things | components/cmsis/Include/core_armv8mml.h | C | apache-2.0 | 158,497 |
/**************************************************************************//**
* @file core_cm0.h
* @brief CMSIS Cortex-M0 Core Peripheral Access Layer Header File
* @version V5.0.6
* @date 13. March 2019
******************************************************************************/
/*
* Copyright (... | YifuLiu/AliOS-Things | components/cmsis/Include/core_cm0.h | C | apache-2.0 | 41,430 |
/**************************************************************************//**
* @file core_cm0plus.h
* @brief CMSIS Cortex-M0+ Core Peripheral Access Layer Header File
* @version V5.0.7
* @date 13. March 2019
******************************************************************************/
/*
* Copyri... | YifuLiu/AliOS-Things | components/cmsis/Include/core_cm0plus.h | C | apache-2.0 | 49,524 |
/**************************************************************************//**
* @file core_cm1.h
* @brief CMSIS Cortex-M1 Core Peripheral Access Layer Header File
* @version V1.0.1
* @date 12. November 2018
******************************************************************************/
/*
* Copyrigh... | YifuLiu/AliOS-Things | components/cmsis/Include/core_cm1.h | C | apache-2.0 | 42,626 |
/**************************************************************************//**
* @file core_cm23.h
* @brief CMSIS Cortex-M23 Core Peripheral Access Layer Header File
* @version V5.0.8
* @date 12. November 2018
******************************************************************************/
/*
* Copyri... | YifuLiu/AliOS-Things | components/cmsis/Include/core_cm23.h | C | apache-2.0 | 102,697 |
/**************************************************************************//**
* @file core_cm3.h
* @brief CMSIS Cortex-M3 Core Peripheral Access Layer Header File
* @version V5.1.0
* @date 13. March 2019
******************************************************************************/
/*
* Copyright (... | YifuLiu/AliOS-Things | components/cmsis/Include/core_cm3.h | C | apache-2.0 | 109,420 |
/**************************************************************************//**
* @file core_cm33.h
* @brief CMSIS Cortex-M33 Core Peripheral Access Layer Header File
* @version V5.1.0
* @date 12. November 2018
******************************************************************************/
/*
* Copyri... | YifuLiu/AliOS-Things | components/cmsis/Include/core_cm33.h | C | apache-2.0 | 165,085 |
/**************************************************************************//**
* @file core_cm35p.h
* @brief CMSIS Cortex-M35P Core Peripheral Access Layer Header File
* @version V1.0.0
* @date 12. November 2018
******************************************************************************/
/*
* Copy... | YifuLiu/AliOS-Things | components/cmsis/Include/core_cm35p.h | C | apache-2.0 | 165,095 |
/**************************************************************************//**
* @file core_cm4.h
* @brief CMSIS Cortex-M4 Core Peripheral Access Layer Header File
* @version V5.1.0
* @date 13. March 2019
******************************************************************************/
/*
* Copyright (... | YifuLiu/AliOS-Things | components/cmsis/Include/core_cm4.h | C | apache-2.0 | 120,867 |
/**************************************************************************//**
* @file core_cm7.h
* @brief CMSIS Cortex-M7 Core Peripheral Access Layer Header File
* @version V5.1.1
* @date 28. March 2019
******************************************************************************/
/*
* Copyright (... | YifuLiu/AliOS-Things | components/cmsis/Include/core_cm7.h | C | apache-2.0 | 149,036 |
/**************************************************************************//**
* @file core_sc000.h
* @brief CMSIS SC000 Core Peripheral Access Layer Header File
* @version V5.0.6
* @date 12. November 2018
******************************************************************************/
/*
* Copyright ... | YifuLiu/AliOS-Things | components/cmsis/Include/core_sc000.h | C | apache-2.0 | 46,407 |
/**************************************************************************//**
* @file core_sc300.h
* @brief CMSIS SC300 Core Peripheral Access Layer Header File
* @version V5.0.8
* @date 31. May 2019
******************************************************************************/
/*
* Copyright (c) 2... | YifuLiu/AliOS-Things | components/cmsis/Include/core_sc300.h | C | apache-2.0 | 108,414 |
/******************************************************************************
* @file mpu_armv7.h
* @brief CMSIS MPU API for Armv7-M MPU
* @version V5.1.0
* @date 08. March 2019
******************************************************************************/
/*
* Copyright (c) 2017-2019 Arm Limited. ... | YifuLiu/AliOS-Things | components/cmsis/Include/mpu_armv7.h | C | apache-2.0 | 11,690 |
/******************************************************************************
* @file mpu_armv8.h
* @brief CMSIS MPU API for Armv8-M and Armv8.1-M MPU
* @version V5.1.0
* @date 08. March 2019
******************************************************************************/
/*
* Copyright (c) 2017-2019... | YifuLiu/AliOS-Things | components/cmsis/Include/mpu_armv8.h | C | apache-2.0 | 11,255 |
/******************************************************************************
* @file tz_context.h
* @brief Context Management for Armv8-M TrustZone
* @version V1.0.1
* @date 10. January 2018
******************************************************************************/
/*
* Copyright (c) 2017-2018... | YifuLiu/AliOS-Things | components/cmsis/Include/tz_context.h | C | apache-2.0 | 2,687 |
/*------------------------------------------------------------------------------
* MDK - Component ::Event Recorder
* Copyright (c) 2016 ARM Germany GmbH. All rights reserved.
*------------------------------------------------------------------------------
* Name: EventRecorderConf.h
* Purpose: Event Recorder Co... | YifuLiu/AliOS-Things | components/cmsis/NN/Examples/ARM/arm_nn_examples/cifar10/RTE/Compiler/EventRecorderConf.h | C | apache-2.0 | 1,717 |
;/**************************************************************************//**
; * @file startup_ARMCM0.s
; * @brief CMSIS Core Device Startup File for
; * ARMCM0 Device Series
; * @version V5.00
; * @date 02. March 2016
; *************************************************************************... | YifuLiu/AliOS-Things | components/cmsis/NN/Examples/ARM/arm_nn_examples/cifar10/RTE/Device/ARMCM0/startup_ARMCM0.s | Unix Assembly | apache-2.0 | 8,652 |
/**************************************************************************//**
* @file system_ARMCM0.c
* @brief CMSIS Device System Source File for
* ARMCM0 Device Series
* @version V5.00
* @date 08. April 2016
******************************************************************************/
... | YifuLiu/AliOS-Things | components/cmsis/NN/Examples/ARM/arm_nn_examples/cifar10/RTE/Device/ARMCM0/system_ARMCM0.c | C | apache-2.0 | 2,034 |
;/**************************************************************************//**
; * @file startup_ARMCM3.s
; * @brief CMSIS Core Device Startup File for
; * ARMCM3 Device Series
; * @version V5.00
; * @date 02. March 2016
; *************************************************************************... | YifuLiu/AliOS-Things | components/cmsis/NN/Examples/ARM/arm_nn_examples/cifar10/RTE/Device/ARMCM3/startup_ARMCM3.s | Unix Assembly | apache-2.0 | 9,269 |
/**************************************************************************//**
* @file system_ARMCM3.c
* @brief CMSIS Device System Source File for
* ARMCM3 Device Series
* @version V5.00
* @date 08. April 2016
******************************************************************************/
... | YifuLiu/AliOS-Things | components/cmsis/NN/Examples/ARM/arm_nn_examples/cifar10/RTE/Device/ARMCM3/system_ARMCM3.c | C | apache-2.0 | 2,397 |
;/**************************************************************************//**
; * @file startup_ARMCM4.s
; * @brief CMSIS Core Device Startup File for
; * ARMCM4 Device Series
; * @version V5.00
; * @date 02. March 2016
; *************************************************************************... | YifuLiu/AliOS-Things | components/cmsis/NN/Examples/ARM/arm_nn_examples/cifar10/RTE/Device/ARMCM4_FP/startup_ARMCM4.s | Unix Assembly | apache-2.0 | 9,269 |
/**************************************************************************//**
* @file system_ARMCM4.c
* @brief CMSIS Device System Source File for
* ARMCM4 Device Series
* @version V5.00
* @date 08. April 2016
******************************************************************************/
... | YifuLiu/AliOS-Things | components/cmsis/NN/Examples/ARM/arm_nn_examples/cifar10/RTE/Device/ARMCM4_FP/system_ARMCM4.c | C | apache-2.0 | 2,787 |
/**************************************************************************//**
* @file startup_ARMCM7.s
* @brief CMSIS Core Device Startup File for
* ARMCM7 Device Series
* @version V5.00
* @date 26. April 2016
******************************************************************************/
... | YifuLiu/AliOS-Things | components/cmsis/NN/Examples/ARM/arm_nn_examples/cifar10/RTE/Device/ARMCM7_SP/startup_ARMCM7.c | C | apache-2.0 | 13,817 |
;/**************************************************************************//**
; * @file startup_ARMCM7.s
; * @brief CMSIS Core Device Startup File for
; * ARMCM7 Device Series
; * @version V5.00
; * @date 02. March 2016
; *************************************************************************... | YifuLiu/AliOS-Things | components/cmsis/NN/Examples/ARM/arm_nn_examples/cifar10/RTE/Device/ARMCM7_SP/startup_ARMCM7.s | Unix Assembly | apache-2.0 | 9,269 |
/**************************************************************************//**
* @file system_ARMCM7.c
* @brief CMSIS Device System Source File for
* ARMCM7 Device Series
* @version V5.00
* @date 08. April 2016
******************************************************************************/
... | YifuLiu/AliOS-Things | components/cmsis/NN/Examples/ARM/arm_nn_examples/cifar10/RTE/Device/ARMCM7_SP/system_ARMCM7.c | C | apache-2.0 | 2,838 |
/*
* Auto generated Run-Time-Environment Component Configuration File
* *** Do not modify ! ***
*
* Project: 'arm_nnexamples_cifar10'
* Target: 'ARMCM0'
*/
#ifndef RTE_COMPONENTS_H
#define RTE_COMPONENTS_H
/*
* Define the Device Header File:
*/
#define CMSIS_device_header "ARMCM0.h"
#define RTE_Co... | YifuLiu/AliOS-Things | components/cmsis/NN/Examples/ARM/arm_nn_examples/cifar10/RTE/_ARMCM0/RTE_Components.h | C | apache-2.0 | 569 |
/*
* Auto generated Run-Time-Environment Component Configuration File
* *** Do not modify ! ***
*
* Project: 'arm_nnexamples_cifar10'
* Target: 'ARMCM3'
*/
#ifndef RTE_COMPONENTS_H
#define RTE_COMPONENTS_H
/*
* Define the Device Header File:
*/
#define CMSIS_device_header "ARMCM3.h"
#define RTE_Co... | YifuLiu/AliOS-Things | components/cmsis/NN/Examples/ARM/arm_nn_examples/cifar10/RTE/_ARMCM3/RTE_Components.h | C | apache-2.0 | 485 |
/*
* Auto generated Run-Time-Environment Component Configuration File
* *** Do not modify ! ***
*
* Project: 'arm_nnexamples_cifar10'
* Target: 'ARMCM4_FP'
*/
#ifndef RTE_COMPONENTS_H
#define RTE_COMPONENTS_H
/*
* Define the Device Header File:
*/
#define CMSIS_device_header "ARMCM4_FP.h"
#define ... | YifuLiu/AliOS-Things | components/cmsis/NN/Examples/ARM/arm_nn_examples/cifar10/RTE/_ARMCM4_FP/RTE_Components.h | C | apache-2.0 | 491 |
/*
* Auto generated Run-Time-Environment Component Configuration File
* *** Do not modify ! ***
*
* Project: 'arm_nnexamples_cifar10'
* Target: 'ARMCM7_SP'
*/
#ifndef RTE_COMPONENTS_H
#define RTE_COMPONENTS_H
/*
* Define the Device Header File:
*/
#define CMSIS_device_header "ARMCM7_SP.h"
#define ... | YifuLiu/AliOS-Things | components/cmsis/NN/Examples/ARM/arm_nn_examples/cifar10/RTE/_ARMCM7_SP/RTE_Components.h | C | apache-2.0 | 491 |
/* ----------------------------------------------------------------------
* Copyright (C) 2010-2018 Arm Limited. All rights reserved.
*
*
* Project: CMSIS NN Library
* Title: arm_nnexamples_cifar10.cpp
*
* Description: Convolutional Neural Network Example
*
* Target Processor: Cortex-M4/Cortex-M7
*
* Re... | YifuLiu/AliOS-Things | components/cmsis/NN/Examples/ARM/arm_nn_examples/cifar10/arm_nnexamples_cifar10.cpp | C++ | apache-2.0 | 8,082 |
#define CONV1_IM_DIM 32
#define CONV1_IM_CH 3
#define CONV1_KER_DIM 5
#define CONV1_PADDING 2
#define CONV1_STRIDE 1
#define CONV1_OUT_CH 32
#define CONV1_OUT_DIM 32
#define POOL1_KER_DIM 3
#define POOL1_STRIDE 2
#define POOL1_PADDING 0
#define POOL1_OUT_DIM 16
#define CONV2_IM_DIM 16
#define CONV2_IM_CH 32
#define C... | YifuLiu/AliOS-Things | components/cmsis/NN/Examples/ARM/arm_nn_examples/cifar10/arm_nnexamples_cifar10_parameter.h | C | apache-2.0 | 874 |
/*------------------------------------------------------------------------------
* MDK - Component ::Event Recorder
* Copyright (c) 2016 ARM Germany GmbH. All rights reserved.
*------------------------------------------------------------------------------
* Name: EventRecorderConf.h
* Purpose: Event Recorder Co... | YifuLiu/AliOS-Things | components/cmsis/NN/Examples/ARM/arm_nn_examples/gru/RTE/Compiler/EventRecorderConf.h | C | apache-2.0 | 1,717 |
;/**************************************************************************//**
; * @file startup_ARMCM0.s
; * @brief CMSIS Core Device Startup File for
; * ARMCM0 Device Series
; * @version V5.00
; * @date 02. March 2016
; *************************************************************************... | YifuLiu/AliOS-Things | components/cmsis/NN/Examples/ARM/arm_nn_examples/gru/RTE/Device/ARMCM0/startup_ARMCM0.s | Unix Assembly | apache-2.0 | 8,652 |
/**************************************************************************//**
* @file system_ARMCM0.c
* @brief CMSIS Device System Source File for
* ARMCM0 Device Series
* @version V5.00
* @date 08. April 2016
******************************************************************************/
... | YifuLiu/AliOS-Things | components/cmsis/NN/Examples/ARM/arm_nn_examples/gru/RTE/Device/ARMCM0/system_ARMCM0.c | C | apache-2.0 | 2,034 |
;/**************************************************************************//**
; * @file startup_ARMCM3.s
; * @brief CMSIS Core Device Startup File for
; * ARMCM3 Device Series
; * @version V5.00
; * @date 02. March 2016
; *************************************************************************... | YifuLiu/AliOS-Things | components/cmsis/NN/Examples/ARM/arm_nn_examples/gru/RTE/Device/ARMCM3/startup_ARMCM3.s | Unix Assembly | apache-2.0 | 9,269 |
/**************************************************************************//**
* @file system_ARMCM3.c
* @brief CMSIS Device System Source File for
* ARMCM3 Device Series
* @version V5.00
* @date 08. April 2016
******************************************************************************/
... | YifuLiu/AliOS-Things | components/cmsis/NN/Examples/ARM/arm_nn_examples/gru/RTE/Device/ARMCM3/system_ARMCM3.c | C | apache-2.0 | 2,397 |
;/**************************************************************************//**
; * @file startup_ARMCM4.s
; * @brief CMSIS Core Device Startup File for
; * ARMCM4 Device Series
; * @version V5.00
; * @date 02. March 2016
; *************************************************************************... | YifuLiu/AliOS-Things | components/cmsis/NN/Examples/ARM/arm_nn_examples/gru/RTE/Device/ARMCM4_FP/startup_ARMCM4.s | Unix Assembly | apache-2.0 | 9,269 |
/**************************************************************************//**
* @file system_ARMCM4.c
* @brief CMSIS Device System Source File for
* ARMCM4 Device Series
* @version V5.00
* @date 08. April 2016
******************************************************************************/
... | YifuLiu/AliOS-Things | components/cmsis/NN/Examples/ARM/arm_nn_examples/gru/RTE/Device/ARMCM4_FP/system_ARMCM4.c | C | apache-2.0 | 2,787 |
/**************************************************************************//**
* @file startup_ARMCM7.s
* @brief CMSIS Core Device Startup File for
* ARMCM7 Device Series
* @version V5.00
* @date 26. April 2016
******************************************************************************/
... | YifuLiu/AliOS-Things | components/cmsis/NN/Examples/ARM/arm_nn_examples/gru/RTE/Device/ARMCM7_SP/startup_ARMCM7.c | C | apache-2.0 | 13,817 |
;/**************************************************************************//**
; * @file startup_ARMCM7.s
; * @brief CMSIS Core Device Startup File for
; * ARMCM7 Device Series
; * @version V5.00
; * @date 02. March 2016
; *************************************************************************... | YifuLiu/AliOS-Things | components/cmsis/NN/Examples/ARM/arm_nn_examples/gru/RTE/Device/ARMCM7_SP/startup_ARMCM7.s | Unix Assembly | apache-2.0 | 9,269 |
/**************************************************************************//**
* @file system_ARMCM7.c
* @brief CMSIS Device System Source File for
* ARMCM7 Device Series
* @version V5.00
* @date 08. April 2016
******************************************************************************/
... | YifuLiu/AliOS-Things | components/cmsis/NN/Examples/ARM/arm_nn_examples/gru/RTE/Device/ARMCM7_SP/system_ARMCM7.c | C | apache-2.0 | 2,838 |
/*
* Auto generated Run-Time-Environment Component Configuration File
* *** Do not modify ! ***
*
* Project: 'arm_nnexamples_gru'
* Target: 'ARMCM0'
*/
#ifndef RTE_COMPONENTS_H
#define RTE_COMPONENTS_H
/*
* Define the Device Header File:
*/
#define CMSIS_device_header "ARMCM0.h"
#define RTE_Compil... | YifuLiu/AliOS-Things | components/cmsis/NN/Examples/ARM/arm_nn_examples/gru/RTE/_ARMCM0/RTE_Components.h | C | apache-2.0 | 565 |
/*
* Auto generated Run-Time-Environment Component Configuration File
* *** Do not modify ! ***
*
* Project: 'arm_nnexamples_gru'
* Target: 'ARMCM3'
*/
#ifndef RTE_COMPONENTS_H
#define RTE_COMPONENTS_H
/*
* Define the Device Header File:
*/
#define CMSIS_device_header "ARMCM3.h"
#define RTE_Compil... | YifuLiu/AliOS-Things | components/cmsis/NN/Examples/ARM/arm_nn_examples/gru/RTE/_ARMCM3/RTE_Components.h | C | apache-2.0 | 481 |
/*
* Auto generated Run-Time-Environment Component Configuration File
* *** Do not modify ! ***
*
* Project: 'arm_nnexamples_gru'
* Target: 'ARMCM4_FP'
*/
#ifndef RTE_COMPONENTS_H
#define RTE_COMPONENTS_H
/*
* Define the Device Header File:
*/
#define CMSIS_device_header "ARMCM4_FP.h"
#define RTE_... | YifuLiu/AliOS-Things | components/cmsis/NN/Examples/ARM/arm_nn_examples/gru/RTE/_ARMCM4_FP/RTE_Components.h | C | apache-2.0 | 487 |
/*
* Auto generated Run-Time-Environment Component Configuration File
* *** Do not modify ! ***
*
* Project: 'arm_nnexamples_gru'
* Target: 'ARMCM7_SP'
*/
#ifndef RTE_COMPONENTS_H
#define RTE_COMPONENTS_H
/*
* Define the Device Header File:
*/
#define CMSIS_device_header "ARMCM7_SP.h"
#define RTE_... | YifuLiu/AliOS-Things | components/cmsis/NN/Examples/ARM/arm_nn_examples/gru/RTE/_ARMCM7_SP/RTE_Components.h | C | apache-2.0 | 487 |
/* ----------------------------------------------------------------------
* Copyright (C) 2010-2018 Arm Limited. All rights reserved.
*
*
* Project: CMSIS NN Library
* Title: arm_nnexamples_gru.cpp
*
* Description: Gated Recurrent Unit Example
*
* Target Processor: Cortex-M4/Cortex-M7
*
* Redistribution... | YifuLiu/AliOS-Things | components/cmsis/NN/Examples/ARM/arm_nn_examples/gru/arm_nnexamples_gru.cpp | C++ | apache-2.0 | 8,800 |
#!/usr/bin/env python
#
# This is a simple script to generate and convert weights
# from regular ordering to specific ordering used by
# q7_x4 or q7_q15_x4
#
import numpy as np
def convert_to_x4_weights(weights):
[r, h, w, c] = weights.shape
weights = np.reshape(weights, (r, h*w*c))
num_of_rows = r
... | YifuLiu/AliOS-Things | components/cmsis/NN/Examples/ARM/arm_nn_examples/gru/para_gen.py | Python | apache-2.0 | 6,591 |
/* ----------------------------------------------------------------------
* Copyright (C) 2010-2018 Arm Limited. All rights reserved.
*
*
* Project: CMSIS NN Library
* Title: arm_nnexamples_cifar10.cpp
*
* Description: Convolutional Neural Network Example
*
* Target Processor: Cortex-M4/Cortex-M7
*
* Re... | YifuLiu/AliOS-Things | components/cmsis/NN/Examples/IAR/iar_nn_examples/NN-example-cifar10/arm_nnexamples_cifar10.cpp | C++ | apache-2.0 | 8,082 |
#define CONV1_IM_DIM 32
#define CONV1_IM_CH 3
#define CONV1_KER_DIM 5
#define CONV1_PADDING 2
#define CONV1_STRIDE 1
#define CONV1_OUT_CH 32
#define CONV1_OUT_DIM 32
#define POOL1_KER_DIM 3
#define POOL1_STRIDE 2
#define POOL1_PADDING 0
#define POOL1_OUT_DIM 16
#define CONV2_IM_DIM 16
#define CONV2_IM_CH 32
#define C... | YifuLiu/AliOS-Things | components/cmsis/NN/Examples/IAR/iar_nn_examples/NN-example-cifar10/arm_nnexamples_cifar10_parameter.h | C | apache-2.0 | 874 |
/* ----------------------------------------------------------------------
* Copyright (C) 2010-2018 Arm Limited. All rights reserved.
*
*
* Project: CMSIS NN Library
* Title: arm_nnexamples_gru.cpp
*
* Description: Gated Recurrent Unit Example
*
* Target Processor: Cortex-M4/Cortex-M7
*
* Redistribution... | YifuLiu/AliOS-Things | components/cmsis/NN/Examples/IAR/iar_nn_examples/NN-example-gru/arm_nnexamples_gru.cpp | C++ | apache-2.0 | 8,800 |
/* ----------------------------------------------------------------------
* Project: CMSIS NN Library
* Title: arm_nn_tables.h
* Description: Extern declaration for NN tables
*
* $Date: 17. January 2018
* $Revision: V.1.0.0
*
* Target Processor: Cortex-M cores
* ------------------------... | YifuLiu/AliOS-Things | components/cmsis/NN/Include/arm_nn_tables.h | C | apache-2.0 | 1,764 |
/*
* Copyright (C) 2010-2018 Arm Limited or its affiliates. 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.... | YifuLiu/AliOS-Things | components/cmsis/NN/Include/arm_nnfunctions.h | C | apache-2.0 | 52,721 |
/*
* Copyright (C) 2010-2018 Arm Limited or its affiliates. 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.... | YifuLiu/AliOS-Things | components/cmsis/NN/Include/arm_nnsupportfunctions.h | C | apache-2.0 | 7,308 |
;/**************************************************************************//**
; * @file startup_ARMCM0.s
; * @brief CMSIS Core Device Startup File for
; * ARMCM0 Device Series
; * @version V5.00
; * @date 02. March 2016
; *************************************************************************... | YifuLiu/AliOS-Things | components/cmsis/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM0/startup_ARMCM0.s | Unix Assembly | apache-2.0 | 8,652 |
/**************************************************************************//**
* @file system_ARMCM0.c
* @brief CMSIS Device System Source File for
* ARMCM0 Device Series
* @version V5.00
* @date 08. April 2016
******************************************************************************/
... | YifuLiu/AliOS-Things | components/cmsis/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM0/system_ARMCM0.c | C | apache-2.0 | 2,034 |
;/**************************************************************************//**
; * @file startup_ARMCM3.s
; * @brief CMSIS Core Device Startup File for
; * ARMCM3 Device Series
; * @version V5.00
; * @date 02. March 2016
; *************************************************************************... | YifuLiu/AliOS-Things | components/cmsis/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM3/startup_ARMCM3.s | Unix Assembly | apache-2.0 | 9,269 |
/**************************************************************************//**
* @file system_ARMCM3.c
* @brief CMSIS Device System Source File for
* ARMCM3 Device Series
* @version V5.00
* @date 08. April 2016
******************************************************************************/
... | YifuLiu/AliOS-Things | components/cmsis/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM3/system_ARMCM3.c | C | apache-2.0 | 2,397 |
;/**************************************************************************//**
; * @file startup_ARMCM4.s
; * @brief CMSIS Core Device Startup File for
; * ARMCM4 Device Series
; * @version V5.00
; * @date 02. March 2016
; *************************************************************************... | YifuLiu/AliOS-Things | components/cmsis/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM4/startup_ARMCM4.s | Unix Assembly | apache-2.0 | 9,269 |
/**************************************************************************//**
* @file system_ARMCM4.c
* @brief CMSIS Device System Source File for
* ARMCM4 Device Series
* @version V5.00
* @date 07. September 2016
****************************************************************************... | YifuLiu/AliOS-Things | components/cmsis/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM4/system_ARMCM4.c | C | apache-2.0 | 2,800 |
;/**************************************************************************//**
; * @file startup_ARMCM4.s
; * @brief CMSIS Core Device Startup File for
; * ARMCM4 Device Series
; * @version V5.00
; * @date 02. March 2016
; *************************************************************************... | YifuLiu/AliOS-Things | components/cmsis/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM4_FP/startup_ARMCM4.s | Unix Assembly | apache-2.0 | 9,269 |
/**************************************************************************//**
* @file system_ARMCM4.c
* @brief CMSIS Device System Source File for
* ARMCM4 Device Series
* @version V5.00
* @date 08. April 2016
******************************************************************************/
... | YifuLiu/AliOS-Things | components/cmsis/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM4_FP/system_ARMCM4.c | C | apache-2.0 | 2,787 |
/**************************************************************************//**
* @file startup_ARMCM7.s
* @brief CMSIS Core Device Startup File for
* ARMCM7 Device Series
* @version V5.00
* @date 26. April 2016
******************************************************************************/
... | YifuLiu/AliOS-Things | components/cmsis/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM7_SP/startup_ARMCM7.c | C | apache-2.0 | 13,817 |
;/**************************************************************************//**
; * @file startup_ARMCM7.s
; * @brief CMSIS Core Device Startup File for
; * ARMCM7 Device Series
; * @version V5.00
; * @date 02. March 2016
; *************************************************************************... | YifuLiu/AliOS-Things | components/cmsis/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM7_SP/startup_ARMCM7.s | Unix Assembly | apache-2.0 | 9,269 |
/**************************************************************************//**
* @file system_ARMCM7.c
* @brief CMSIS Device System Source File for
* ARMCM7 Device Series
* @version V5.00
* @date 08. April 2016
******************************************************************************/
... | YifuLiu/AliOS-Things | components/cmsis/NN/NN_Lib_Tests/nn_test/RTE/Device/ARMCM7_SP/system_ARMCM7.c | C | apache-2.0 | 2,838 |
;******************** (C) COPYRIGHT 2016 STMicroelectronics ********************
;* File Name : startup_stm32f411xe.s
;* Author : MCD Application Team
;* Version : V2.6.0
;* Date : 04-November-2016
;* Description : STM32F411xExx devices vector table for MDK-ARM toolc... | YifuLiu/AliOS-Things | components/cmsis/NN/NN_Lib_Tests/nn_test/RTE/Device/STM32F411RETx/startup_stm32f411xe.s | Unix Assembly | apache-2.0 | 26,124 |
/**
******************************************************************************
* @file system_stm32f4xx.c
* @author MCD Application Team
* @version V2.6.0
* @date 04-November-2016
* @brief CMSIS Cortex-M4 Device Peripheral Access Layer System Source File.
*
* This file provides two functi... | YifuLiu/AliOS-Things | components/cmsis/NN/NN_Lib_Tests/nn_test/RTE/Device/STM32F411RETx/system_stm32f4xx.c | C | apache-2.0 | 27,470 |
/*
* Auto generated Run-Time-Environment Component Configuration File
* *** Do not modify ! ***
*
* Project: 'arm_nnexamples_cifar10'
* Target: 'ARMCM0'
*/
#ifndef RTE_COMPONENTS_H
#define RTE_COMPONENTS_H
/*
* Define the Device Header File:
*/
#define CMSIS_device_header "ARMCM0.h"
#endif /* RTE... | YifuLiu/AliOS-Things | components/cmsis/NN/NN_Lib_Tests/nn_test/RTE/_ARMCM0/RTE_Components.h | C | apache-2.0 | 337 |
/*
* Auto generated Run-Time-Environment Component Configuration File
* *** Do not modify ! ***
*
* Project: 'arm_nnexamples_nn_test'
* Target: 'ARMCM3'
*/
#ifndef RTE_COMPONENTS_H
#define RTE_COMPONENTS_H
/*
* Define the Device Header File:
*/
#define CMSIS_device_header "ARMCM3.h"
#define RTE_Co... | YifuLiu/AliOS-Things | components/cmsis/NN/NN_Lib_Tests/nn_test/RTE/_ARMCM3/RTE_Components.h | C | apache-2.0 | 775 |
/*
* Auto generated Run-Time-Environment Component Configuration File
* *** Do not modify ! ***
*
* Project: 'arm_nnexamples_nn_test'
* Target: 'ARMCM4_FP'
*/
#ifndef RTE_COMPONENTS_H
#define RTE_COMPONENTS_H
/*
* Define the Device Header File:
*/
#define CMSIS_device_header "ARMCM4_FP.h"
#define ... | YifuLiu/AliOS-Things | components/cmsis/NN/NN_Lib_Tests/nn_test/RTE/_ARMCM4_FP/RTE_Components.h | C | apache-2.0 | 781 |
/*
* Auto generated Run-Time-Environment Component Configuration File
* *** Do not modify ! ***
*
* Project: 'arm_nnexamples_nn_test'
* Target: 'ARMCM7_SP'
*/
#ifndef RTE_COMPONENTS_H
#define RTE_COMPONENTS_H
/*
* Define the Device Header File:
*/
#define CMSIS_device_header "ARMCM7_SP.h"
#define ... | YifuLiu/AliOS-Things | components/cmsis/NN/NN_Lib_Tests/nn_test/RTE/_ARMCM7_SP/RTE_Components.h | C | apache-2.0 | 781 |
/*
* Copyright (C) 2010-2018 Arm Limited or its affiliates. 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.... | YifuLiu/AliOS-Things | components/cmsis/NN/NN_Lib_Tests/nn_test/Ref_Implementations/arm_convolve_HWC_q15_ref.c | C | apache-2.0 | 3,081 |
/*
* Copyright (C) 2010-2018 Arm Limited or its affiliates. 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.... | YifuLiu/AliOS-Things | components/cmsis/NN/NN_Lib_Tests/nn_test/Ref_Implementations/arm_convolve_HWC_q15_ref_nonsquare.c | C | apache-2.0 | 3,228 |
/*
* Copyright (C) 2010-2018 Arm Limited or its affiliates. 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.... | YifuLiu/AliOS-Things | components/cmsis/NN/NN_Lib_Tests/nn_test/Ref_Implementations/arm_convolve_HWC_q7_ref.c | C | apache-2.0 | 3,118 |
/*
* Copyright (C) 2010-2018 Arm Limited or its affiliates. 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.... | YifuLiu/AliOS-Things | components/cmsis/NN/NN_Lib_Tests/nn_test/Ref_Implementations/arm_convolve_HWC_q7_ref_nonsquare.c | C | apache-2.0 | 3,779 |
/*
* Copyright (C) 2010-2018 Arm Limited or its affiliates. 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.... | YifuLiu/AliOS-Things | components/cmsis/NN/NN_Lib_Tests/nn_test/Ref_Implementations/arm_depthwise_separable_conv_HWC_q7_ref.c | C | apache-2.0 | 3,515 |
/*
* Copyright (C) 2010-2018 Arm Limited or its affiliates. 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.... | YifuLiu/AliOS-Things | components/cmsis/NN/NN_Lib_Tests/nn_test/Ref_Implementations/arm_depthwise_separable_conv_HWC_q7_ref_nonsquare.c | C | apache-2.0 | 4,241 |
/*
* Copyright (C) 2010-2018 Arm Limited or its affiliates. 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.... | YifuLiu/AliOS-Things | components/cmsis/NN/NN_Lib_Tests/nn_test/Ref_Implementations/arm_fully_connected_mat_q7_vec_q15_opt_ref.c | C | apache-2.0 | 3,920 |
/*
* Copyright (C) 2010-2018 Arm Limited or its affiliates. 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.... | YifuLiu/AliOS-Things | components/cmsis/NN/NN_Lib_Tests/nn_test/Ref_Implementations/arm_fully_connected_mat_q7_vec_q15_ref.c | C | apache-2.0 | 1,822 |
/*
* Copyright (C) 2010-2018 Arm Limited or its affiliates. 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.... | YifuLiu/AliOS-Things | components/cmsis/NN/NN_Lib_Tests/nn_test/Ref_Implementations/arm_fully_connected_q15_opt_ref.c | C | apache-2.0 | 3,814 |
/*
* Copyright (C) 2010-2018 Arm Limited or its affiliates. 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.... | YifuLiu/AliOS-Things | components/cmsis/NN/NN_Lib_Tests/nn_test/Ref_Implementations/arm_fully_connected_q15_ref.c | C | apache-2.0 | 1,735 |
/*
* Copyright (C) 2010-2018 Arm Limited or its affiliates. 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.... | YifuLiu/AliOS-Things | components/cmsis/NN/NN_Lib_Tests/nn_test/Ref_Implementations/arm_fully_connected_q7_opt_ref.c | C | apache-2.0 | 4,280 |
/*
* Copyright (C) 2010-2018 Arm Limited or its affiliates. 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.... | YifuLiu/AliOS-Things | components/cmsis/NN/NN_Lib_Tests/nn_test/Ref_Implementations/arm_fully_connected_q7_ref.c | C | apache-2.0 | 1,720 |
/*
* Copyright (C) 2010-2018 Arm Limited or its affiliates. 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.... | YifuLiu/AliOS-Things | components/cmsis/NN/NN_Lib_Tests/nn_test/Ref_Implementations/arm_nn_mult_ref.c | C | apache-2.0 | 1,772 |
/*
* Copyright (C) 2010-2018 Arm Limited or its affiliates. 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.... | YifuLiu/AliOS-Things | components/cmsis/NN/NN_Lib_Tests/nn_test/Ref_Implementations/arm_pool_ref.c | C | apache-2.0 | 4,022 |
/*
* Copyright (C) 2010-2018 Arm Limited or its affiliates. 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.... | YifuLiu/AliOS-Things | components/cmsis/NN/NN_Lib_Tests/nn_test/Ref_Implementations/arm_relu_ref.c | C | apache-2.0 | 1,055 |
/*
* Copyright (C) 2010-2018 Arm Limited or its affiliates. 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.... | YifuLiu/AliOS-Things | components/cmsis/NN/NN_Lib_Tests/nn_test/Ref_Implementations/ref_functions.h | C | apache-2.0 | 17,038 |
/* ----------------------------------------------------------------------
* Copyright (C) 2010-2018 Arm Limited. All rights reserved.
*
*
* Project: CMSIS NN Library
* Title: arm_nnexamples_nn_test.cpp
*
* Description: Example code for NN kernel testing.
*
* Target Processor: Cortex-M cores
*
* Redistri... | YifuLiu/AliOS-Things | components/cmsis/NN/NN_Lib_Tests/nn_test/arm_nnexamples_nn_test.cpp | C++ | apache-2.0 | 30,812 |
#ifndef _MAIN_H_
#define _MAIN_H_
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "arm_math.h"
#include "arm_nnfunctions.h"
#include "ref_functions.h"
extern int test_index;
extern q7_t test_flags[50];
void initialize_results_q7(q7_t * ref, q7_t * opt, int length)
{
arm_fill_q7(0, ref, length... | YifuLiu/AliOS-Things | components/cmsis/NN/NN_Lib_Tests/nn_test/arm_nnexamples_nn_test.h | C | apache-2.0 | 1,493 |
@echo off
set UVEXE=C:\Keil_v5\UV4\UV4.EXE
echo Building NN Test for Cortex-M7 Single Precision Little Endian
%UVEXE% -rb -j0 arm_nnexamples_nn_test.uvprojx -t "ARMCM7_SP" -o "NN_Test_ARMCM7_SP_build.log"
echo Running NN Test for Cortex-M7 Single Precision Little Endian
%UVEXE% -d arm_nnexamples_nn_test.uvprojx -t "... | YifuLiu/AliOS-Things | components/cmsis/NN/NN_Lib_Tests/nn_test/runTest.bat | Batchfile | apache-2.0 | 1,877 |
#!/usr/bin/env python
import numpy as np
def convert_to_x4_q7_weights(weights):
[r, h, w, c] = weights.shape
weights = np.reshape(weights, (r, h*w*c))
num_of_rows = r
num_of_cols = h*w*c
new_weights = np.copy(weights)
new_weights = np.reshape(new_weights, (r*h*w*c))
counter = 0
for i i... | YifuLiu/AliOS-Things | components/cmsis/NN/Scripts/NNFunctions/fully_connected_opt_weight_generation.py | Python | apache-2.0 | 5,916 |