AIfES 2  2.0.0
ailayer_softsign_avr_pgm.h File Reference

AVR PGM implementation of the Softsign layer . More...

Go to the source code of this file.

Functions

ailayer_tailayer_softsign_q7_avr_pgm (ailayer_softsign_q7_t *layer, ailayer_t *input_layer)
 Initializes and connect a Softsign layer with the Q7 AVR PGM implementation. More...
 

Detailed Description

AVR PGM implementation of the Softsign layer .

Version
2.2.0

AVR controller specific implementation of the Softsign layer in Q7 data-type. For more information about the Softsign layer refer to ailayer_softsign.h.

Requires avr/pgmspace.h library

Function Documentation

◆ ailayer_softsign_q7_avr_pgm()

ailayer_t* ailayer_softsign_q7_avr_pgm ( ailayer_softsign_q7_t layer,
ailayer_t input_layer 
)

Initializes and connect a Softsign 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_softsign_q7_default().

The quantization parameters of the result tensor are automatically set to {shift = 7, zero_point = 0} because the output values are in the interval (-1, 1).

Example: Create the layer structure:

ailayer_softsign_q7_t softsign_layer;
General Softsign layer struct.
Definition: ailayer_softsign.h:48

or

ailayer_softsign_q7_t softsign_layer = AILAYER_SOFTSIGN_Q7_M();

Example: Initialize and connect the layer:

x = ailayer_softsign_q7_avr_pgm(&softsign_layer, x);
ailayer_t * ailayer_softsign_q7_avr_pgm(ailayer_softsign_q7_t *layer, ailayer_t *input_layer)
Initializes and connect a Softsign layer with the Q7 AVR PGM implementation.
Parameters
*layerThe layer structure to initialize.
*input_layerThe prior layer.
Returns
The (successfully) initialized layer structure.