| 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
36 #include "basic/default/aimath/aimath_q7_default.h"
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
303 void aimath_q7_avr_pgm_relu(const aitensor_t *x, aitensor_t *result);
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
451 void aimath_q7_avr_pgm_sigmoid(const aitensor_t *x, aitensor_t *result);
452
501 void aimath_q7_avr_pgm_tanh(const aitensor_t *x, aitensor_t *result);
502
537 void aimath_q7_avr_pgm_softsign(const aitensor_t *x, aitensor_t *result);
538
573 void aimath_q7_avr_pgm_softmax(const aitensor_t *x, aitensor_t *result);
574
575 #endif // AIMATH_Q7_AVR_PGM_H
576
577 #endif // AIFES_WITH_AVR_PGM
578 #endif // __AVR__
aimath_q7_avr_pgm_tanh
void aimath_q7_avr_pgm_tanh(const aitensor_t *x, aitensor_t *result)
Calculates the tanh of each element in a Q7 tensor.
aimath_q7_avr_pgm_linear32_2
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.
aimath_q7_avr_pgm_elu
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.
aimath_q7_avr_pgm_relu
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.
aimath_q7_avr_pgm_linear32_bt_2
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.
aimath_q7_avr_pgm_linear32_1
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.
aimath_q7_avr_pgm_softsign
void aimath_q7_avr_pgm_softsign(const aitensor_t *x, aitensor_t *result)
Calculates the softsign value of each element in a Q7 tensor.
aimath_q7_avr_pgm_linear32_bt_1
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...
aimath_q7_avr_pgm_softmax
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.
aimath_q7_avr_pgm_leaky_relu
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.
aimath_q7_avr_pgm_sigmoid
void aimath_q7_avr_pgm_sigmoid(const aitensor_t *x, aitensor_t *result)
Calculates the sigmoid of each element in a Q7 tensor.
aimath_q7_default.h
Math functions for Q7 data type, default implementation.
aitensor
A tensor in AIfES.
Definition: aifes_math.h:89