![]() |
AIfES 2 2.0.0
|
Arm CMSIS implementation of the Dense layer for Arm Cortex processors. More...
Go to the source code of this file.
Functions | |
ailayer_t * | ailayer_dense_f32_cmsis (ailayer_dense_t *layer, ailayer_t *input_layer) |
Initializes and connect a Dense layer with the F32 CMSIS implementation. More... | |
ailayer_t * | ailayer_dense_wt_q7_cmsis (ailayer_dense_t *layer, ailayer_t *input_layer) |
Initializes and connect a Dense layer with the Q31 CMSIS implementation. More... | |
Arm CMSIS implementation of the Dense layer for Arm Cortex processors.
AIfES is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.
Arm CMSIS implementations of the Dense layer in F32 , Q31 and Q7 data-type. These implementations are specifically designed for the Arm Cortex processors and take advantage of SIMD instructions. For more information about the Dense layer refer to ailayer_dense.h.
ailayer_t * ailayer_dense_f32_cmsis | ( | ailayer_dense_t * | layer, |
ailayer_t * | input_layer | ||
) |
Initializes and connect a Dense layer with the F32 CMSIS implementation.
Example: Create the layer structure with pretrained weights:
Example: Create the layer structure for training:
Example: Initialize and connect the layer:
*layer | The layer structure to initialize. |
*input_layer | The prior layer. |
ailayer_t * ailayer_dense_wt_q7_cmsis | ( | ailayer_dense_t * | layer, |
ailayer_t * | input_layer | ||
) |
Initializes and connect a Dense layer with the Q31 CMSIS implementation.
Example: Create the layer structure with pretrained weights:
Example: Create the layer structure for training:
Example: Initialize and connect the layer:
*layer | The layer structure to initialize. |
*input_layer | The prior layer. |
Initializes and connect a Dense layer with the Q7 AMR CMSIS implementation for transposed weights tensor
The weights tensor has to be transposed for this implementation, like in ailayer_dense_wt_q7_default().
Example: Create the layer structure with pretrained weights:
In C:
In C, C++ and on Arduino:
Example: Create the layer structure for automatic parameter distribution:
In C:
In C, C++ and on Arduino:
Example: Initialize and connect the layer:
*layer | The layer structure to initialize. |
*input_layer | The prior layer. |