| AIfES 2 2.0.0

ailayer_reshape_default.h
Go to the documentation of this file.
1
25 #ifndef AILAYER_RESHAPE_DEFAULT_H
26 #define AILAYER_RESHAPE_DEFAULT_H
27
28 #include "cnn/base/ailayer/ailayer_reshape.h"
29
30 #include "basic/default/aimath/aimath_f32_default.h"
31 #include "basic/default/aimath/aimath_q31_default.h"
32 #include "basic/default/aimath/aimath_q7_default.h"
33 #include "cnn/default/aimath/aimath_cnn_f32_default.h"
34
35 #define AILAYER_RESHAPE_F32_M(output_dim, infer_axis, output_shape) {{0,},output_dim,infer_axis,output_shape}
36 #define AILAYER_RESHAPE_F32_A(output_dim, infer_axis, output_shape) {{0,},output_dim,infer_axis,output_shape}
37 #define AILAYER_RESHAPE_Q31_M(output_dim, infer_axis, output_shape) {{0,},output_dim,infer_axis,output_shape}
38 #define AILAYER_RESHAPE_Q31_A(output_dim, infer_axis, output_shape) {{0,},output_dim,infer_axis,output_shape}
39 #define AILAYER_RESHAPE_Q7_M(output_dim, infer_axis, output_shape) {{0,},output_dim,infer_axis,output_shape}
40 #define AILAYER_RESHAPE_Q7_A(output_dim, infer_axis, output_shape) {{0,},output_dim,infer_axis,output_shape}
41
42 #define AILAYER_FLATTEN_F32_M() {{{0,},},}
43 #define AILAYER_FLATTEN_F32_A() {{{0,},},}
44 #define AILAYER_FLATTEN_Q31_M() {{{0,},},}
45 #define AILAYER_FLATTEN_Q31_A() {{{0,},},}
46 #define AILAYER_FLATTEN_Q7_M() {{{0,},},}
47 #define AILAYER_FLATTEN_Q7_A() {{{0,},},}
48
49 typedef struct ailayer_reshape ailayer_reshape_f32_t;
50 typedef struct ailayer_reshape ailayer_reshape_q31_t;
51 typedef struct ailayer_reshape ailayer_reshape_q7_t;
52
53 typedef struct ailayer_flatten ailayer_flatten_f32_t;
54 typedef struct ailayer_flatten ailayer_flatten_q31_t;
55 typedef struct ailayer_flatten ailayer_flatten_q7_t;
56
88 ailayer_t *ailayer_reshape_f32_default(ailayer_reshape_f32_t *layer, ailayer_t *input_layer);
89
121 ailayer_t *ailayer_reshape_q31_default(ailayer_reshape_q31_t *layer, ailayer_t *input_layer);
122
154 ailayer_t *ailayer_reshape_q7_default(ailayer_reshape_q7_t *layer, ailayer_t *input_layer);
155
156
177 ailayer_t *ailayer_flatten_f32_default(ailayer_flatten_f32_t *layer, ailayer_t *input_layer);
178
199 ailayer_t *ailayer_flatten_q31_default(ailayer_flatten_q31_t *layer, ailayer_t *input_layer);
200
221 ailayer_t *ailayer_flatten_q7_default(ailayer_flatten_q7_t *layer, ailayer_t *input_layer);
222
223 #endif // AILAYER_RESHAPE_DEFAULT_H
ailayer_reshape.h
Base layer implementation of the Reshape layer.
ailayer_flatten_q31_default
ailayer_t * ailayer_flatten_q31_default(ailayer_flatten_q31_t *layer, ailayer_t *input_layer)
Initializes and connect a Flatten layer with the F32 default implementation.
ailayer_flatten_f32_default
ailayer_t * ailayer_flatten_f32_default(ailayer_flatten_f32_t *layer, ailayer_t *input_layer)
Initializes and connect a Flatten layer with the F32 default implementation.
ailayer_reshape_f32_default
ailayer_t * ailayer_reshape_f32_default(ailayer_reshape_f32_t *layer, ailayer_t *input_layer)
Initializes and connect a Reshape layer with the F32 default implementation.
ailayer_reshape_q7_default
ailayer_t * ailayer_reshape_q7_default(ailayer_reshape_q7_t *layer, ailayer_t *input_layer)
Initializes and connect a Reshape layer with the Q7 default implementation.
ailayer_flatten_q7_default
ailayer_t * ailayer_flatten_q7_default(ailayer_flatten_q7_t *layer, ailayer_t *input_layer)
Initializes and connect a Flatten layer with the F32 default implementation.
ailayer_reshape_q31_default
ailayer_t * ailayer_reshape_q31_default(ailayer_reshape_q31_t *layer, ailayer_t *input_layer)
Initializes and connect a Reshape layer with the Q31 default implementation.
aimath_cnn_f32_default.h
Math functions for F32 data type, CNN-specific implementation.
aimath_f32_default.h
Math functions for F32 data type, default implementation.
aimath_q31_default.h
Math functions for Q31 data type, default implementation.
aimath_q7_default.h
Math functions for Q7 data type, default implementation.
ailayer_flatten
Structure of the Flatten layer, based on the reshape layer .
Definition: ailayer_reshape.h:78
ailayer_reshape
General layer structure.
Definition: ailayer_reshape.h:42
ailayer
AIfES layer interface.
Definition: aifes_core.h:252