AIfES 2
2.0.0
|
AVR PGM implementation of the Sigmoid layer . More...
Go to the source code of this file.
Functions | |
ailayer_t * | ailayer_sigmoid_q7_avr_pgm (ailayer_sigmoid_q7_t *layer, ailayer_t *input_layer) |
Initializes and connect a Sigmoid layer with the Q7 AVR PGM implementation. More... | |
AVR PGM implementation of the Sigmoid layer .
AVR controller specific implementation of the Sigmoid layer in Q7 data-type. For more information about the Sigmoid layer refer to ailayer_sigmoid.h.
Requires avr/pgmspace.h library
ailayer_t* ailayer_sigmoid_q7_avr_pgm | ( | ailayer_sigmoid_q7_t * | layer, |
ailayer_t * | input_layer | ||
) |
Initializes and connect a Sigmoid layer with the Q7 AVR PGM implementation.
The quantization parameters of the result tensor of the input layer must be defined constant in program memory (PROGMEM). The layer configuration is the same as with ailayer_sigmoid_q7_default().
The quantization parameters of the result tensor are automatically set to {shift = 8, zero_point = -2^7} because the output values are in the interval (0, 1).
Example: Create the layer structure:
or
Example: Initialize and connect the layer:
*layer | The layer structure to initialize. |
*input_layer | The prior layer. |