AIfES 2  2.0.0
aimath_q7_avr_pgm.h
Go to the documentation of this file.
1 
28 #include "aifes_config.h"
29 
30 #if __AVR__
31 #ifdef AIFES_WITH_AVR_PGM
32 
33 #ifndef AIMATH_Q7_AVR_PGM_H
34 #define AIMATH_Q7_AVR_PGM_H
35 
37 
93 void aimath_q7_avr_pgm_linear32_1(const aitensor_t *a, const aitensor_t *b, const aitensor_t *c, aitensor_t *result);
94 
150 void aimath_q7_avr_pgm_linear32_2(const aitensor_t *a, const aitensor_t *b, const aitensor_t *c, aitensor_t *result);
151 
152 
209 void aimath_q7_avr_pgm_linear32_bt_1(const aitensor_t *a, const aitensor_t *b, const aitensor_t *c, aitensor_t *result);
210 
267 void aimath_q7_avr_pgm_linear32_bt_2(const aitensor_t *a, const aitensor_t *b, const aitensor_t *c, aitensor_t *result);
268 
304 
345 void aimath_q7_avr_pgm_leaky_relu(const aitensor_t *x, const void *alpha, aitensor_t *result);
346 
400 void aimath_q7_avr_pgm_elu(const aitensor_t *x, const void *alpha, aitensor_t *result);
401 
402 
452 
502 
538 
574 
575 #endif // AIMATH_Q7_AVR_PGM_H
576 
577 #endif // AIFES_WITH_AVR_PGM
578 #endif // __AVR__
void aimath_q7_avr_pgm_tanh(const aitensor_t *x, aitensor_t *result)
Calculates the tanh of each element in a Q7 tensor.
void aimath_q7_avr_pgm_linear32_2(const aitensor_t *a, const aitensor_t *b, const aitensor_t *c, aitensor_t *result)
Performs a matrix multiplication of Q7 matrices a and b and adds a Q31 vector c to each row.
void aimath_q7_avr_pgm_elu(const aitensor_t *x, const void *alpha, aitensor_t *result)
Calculates the exponential rectifier (ELU) value of each element in a Q7 tensor.
void aimath_q7_avr_pgm_relu(const aitensor_t *x, aitensor_t *result)
Calculates the rectifier (ReLU) value of each element in a Q7 tensor.
void aimath_q7_avr_pgm_linear32_bt_2(const aitensor_t *a, const aitensor_t *b, const aitensor_t *c, aitensor_t *result)
Performs a matrix multiplication of Q7 matrices a and b and adds a Q31 vector c to each row.
void aimath_q7_avr_pgm_linear32_1(const aitensor_t *a, const aitensor_t *b, const aitensor_t *c, aitensor_t *result)
Performs a matrix multiplication of Q7 matrices a and b and adds a Q31 vector c to each row.
void aimath_q7_avr_pgm_softsign(const aitensor_t *x, aitensor_t *result)
Calculates the softsign value of each element in a Q7 tensor.
void aimath_q7_avr_pgm_linear32_bt_1(const aitensor_t *a, const aitensor_t *b, const aitensor_t *c, aitensor_t *result)
Performs a matrix multiplication of Q7 matrices a and b (transposed) and adds a Q31 vector c to eac...
void aimath_q7_avr_pgm_softmax(const aitensor_t *x, aitensor_t *result)
Calculates the softmax value of each batch element (row) of a Q7 tensor.
void aimath_q7_avr_pgm_leaky_relu(const aitensor_t *x, const void *alpha, aitensor_t *result)
Calculates the leaky rectifier (leaky ReLU) value of each element in a Q7 tensor.
void aimath_q7_avr_pgm_sigmoid(const aitensor_t *x, aitensor_t *result)
Calculates the sigmoid of each element in a Q7 tensor.
Math functions for Q7 data type, default implementation.
A tensor in AIfES.
Definition: aifes_math.h:89