| AIfES 2 2.0.0

aifes_basic.h
Go to the documentation of this file.
1
24 // Include AIfES core headers
25 #include "core/aifes_math.h"
26 #include "core/aifes_core.h"
27
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31
32 // Include the datatypes
33 #include "basic/base/aimath/aimath_f32.h"
34 #include "basic/base/aimath/aimath_q31.h"
35 #include "basic/base/aimath/aimath_q7.h"
36 #include "basic/base/aimath/aimath_u8.h"
37
38 // Include basic datatype independent math functions
39 #include "basic/base/aimath/aimath_basic.h"
40
41 // ---------------------------- Module base implementations -----------------------
42 // ("abstract" super "classes". A hardware optimized implementation can "inherit" from these modules)
43
44 // Include the layer base implementations
45 #include "basic/base/ailayer/ailayer_dense.h"
46 #include "basic/base/ailayer/ailayer_input.h"
47 #include "basic/base/ailayer/ailayer_relu.h"
48 #include "basic/base/ailayer/ailayer_leaky_relu.h"
49 #include "basic/base/ailayer/ailayer_elu.h"
50 #include "basic/base/ailayer/ailayer_sigmoid.h"
51 #include "basic/base/ailayer/ailayer_tanh.h"
52 #include "basic/base/ailayer/ailayer_softmax.h"
53 #include "basic/base/ailayer/ailayer_softsign.h"
54
55 // Include the loss base implementations
56 #include "basic/base/ailoss/ailoss_mse.h"
57 #include "basic/base/ailoss/ailoss_crossentropy.h"
58
59 // Include the optimizer base implementations
60 #include "basic/base/aiopti/aiopti_sgd.h"
61 #include "basic/base/aiopti/aiopti_adam.h"
62
63 // ---------------------------- Module default implementations -----------------------
64 // (Fallback functions if no hardware optimized implementation available)
65
66 // Include the math in default implementation
67 #include "basic/default/aimath/aimath_f32_default.h"
68 #include "basic/default/aimath/aimath_q31_default.h"
69 #include "basic/default/aimath/aimath_q7_default.h"
70
71 // Include the layers in default implementation
72 #include "basic/default/ailayer/ailayer_dense_default.h"
73 #include "basic/default/ailayer/ailayer_input_default.h"
74 #include "basic/default/ailayer/ailayer_relu_default.h"
75 #include "basic/default/ailayer/ailayer_leaky_relu_default.h"
76 #include "basic/default/ailayer/ailayer_elu_default.h"
77 #include "basic/default/ailayer/ailayer_sigmoid_default.h"
78 #include "basic/default/ailayer/ailayer_tanh_default.h"
79 #include "basic/default/ailayer/ailayer_softmax_default.h"
80 #include "basic/default/ailayer/ailayer_softsign_default.h"
81
82 // Include the losses in default implementation
83 #include "basic/default/ailoss/ailoss_mse_default.h"
84 #include "basic/default/ailoss/ailoss_crossentropy_default.h"
85
86 // Include the optimizers in default implementation
87 #include "basic/default/aiopti/aiopti_sgd_default.h"
88 #include "basic/default/aiopti/aiopti_adam_default.h"
89
90 // ---------------------------- Algorithmic -----------------------
91
92 // Include the algorithmic
93 #include "basic/base/aialgo/aialgo_sequential_inference.h"
94 #include "basic/base/aialgo/aialgo_sequential_training.h"
95
96 // ---------------------------- AIfES express -----------------------
97
98 // Include AIfES express functions (high level api)
99
100 #include "basic/express/aifes_express_f32_fnn.h"
101 #include "basic/express/aifes_express_q7_fnn.h"
102
103
104 #ifdef __cplusplus
105 } // End extern "C"
106 #endif
aialgo_sequential_inference.h
Functions required for inference of models.
aialgo_sequential_training.h
Functions required for the training of models.
aifes_core.h
AIfES 2 core interface.
aifes_express_f32_fnn.h
AIfES Express functions for weights with F32 (float32) data type.
aifes_express_q7_fnn.h
AIfES Express functions for weights with Q7 (int8) data type.
aifes_math.h
AIfES 2 math interface.
ailayer_dense.h
Base layer implementation of the Dense layer.
ailayer_dense_default.h
Default implementation of the Dense layer .
ailayer_elu.h
Base layer implementation of the ELU activation layer.
ailayer_elu_default.h
Default implementation of the ELU layer .
ailayer_input.h
Base layer implementation of the Input layer.
ailayer_input_default.h
Default implementation of the Input layer .
ailayer_leaky_relu.h
Base layer implementation of the Leaky ReLU activation layer.
ailayer_leaky_relu_default.h
Default implementation of the Leaky ReLU layer .
ailayer_relu.h
Base layer implementation of the ReLU activation layer.
ailayer_relu_default.h
Default implementation of the ReLU layer .
ailayer_sigmoid.h
Base layer implementation of the Sigmoid activation layer.
ailayer_sigmoid_default.h
Default implementation of the Sigmoid layer .
ailayer_softmax.h
Base layer implementation of the Softmax activation layer.
ailayer_softmax_default.h
Default implementation of the Softmax layer .
ailayer_softsign.h
Base layer implementation of the Softsign activation layer.
ailayer_softsign_default.h
Default implementation of the Softsign layer .
ailayer_tanh.h
Base layer implementation of the Tanh activation layer.
ailayer_tanh_default.h
Default implementation of the Tanh layer .
ailoss_crossentropy.h
Base loss implementation of the Cross-Entropy loss.
ailoss_crossentropy_default.h
Default implementation of the Cross-Entropy loss .
ailoss_mse.h
Base loss implementation of the Mean Squared Error (MSE) loss.
ailoss_mse_default.h
Default implementation of the Mean Squared Error loss .
aimath_basic.h
Basic data-type independent math operations.
aimath_f32.h
Definition of the F32 (aif32) data-type.
aimath_f32_default.h
Math functions for F32 data type, default implementation.
aimath_q31.h
Definition of the Q31 (aiq31) data-type.
aimath_q31_default.h
Math functions for Q31 data type, default implementation.
aimath_q7.h
Definition of the Q7 (aiq7) data-type.
aimath_q7_default.h
Math functions for Q7 data type, default implementation.
aimath_u8.h
Definition of the U8 (aiu8) data-type.
aiopti_adam.h
Base optimizer implementation of the Adam optimizer
aiopti_adam_default.h
Default implementation of the Adam optimizer .
aiopti_sgd.h
Base optimizer implementation of the Stochastic Gradient Descent (with momentum) optimizer.
aiopti_sgd_default.h
Default implementation of the Stochastic Gradient Descend optimizer .