Hi, I am using a STM32L496RE MCU and I am confused as to how the in_data should be formatted in the app_x_cube-ai.c file.
I have a model with 14 float inputs in a single array and 3 array output each with a size of 4 float numbers.
However the AI_input_size is ((1*1*14)*4) when I need it to be ((1*1*14)*1) and the AI_output_size is ((1*1*3)*4)
#define AI_NN1_IN_NUM (1)
#define AI_NN1_IN { \
AI_BUFFER_OBJ_INIT(AI_BUFFER_FORMAT_FLOAT, 1, 1, 14, 1, NULL), \
}
#define AI_NN1_IN_SIZE { \
(1 * 1 * 14), \
}
#define AI_NN1_IN_1_SIZE (1 * 1 * 14)
#define AI_NN1_IN_1_SIZE_BYTES ((1 * 1 * 14) * 4)
#define AI_NN1_OUT_NUM (3)
#define AI_NN1_OUT { \
AI_BUFFER_OBJ_INIT(AI_BUFFER_FORMAT_FLOAT, 1, 1, 3, 1, NULL), \
AI_BUFFER_OBJ_INIT(AI_BUFFER_FORMAT_FLOAT, 1, 1, 3, 1, NULL), \
AI_BUFFER_OBJ_INIT(AI_BUFFER_FORMAT_FLOAT, 1, 1, 3, 1, NULL), \
}
#define AI_NN1_OUT_SIZE { \
(1 * 1 * 3), \
(1 * 1 * 3), \
(1 * 1 * 3), \
}
#define AI_NN1_OUT_1_SIZE (1 * 1 * 3)
#define AI_NN1_OUT_2_SIZE (1 * 1 * 3)
#define AI_NN1_OUT_3_SIZE (1 * 1 * 3)
#define AI_NN1_OUT_1_SIZE_BYTES ((1 * 1 * 3) * 4)
#define AI_NN1_OUT_2_SIZE_BYTES ((1 * 1 * 3) * 4)
#define AI_NN1_OUT_3_SIZE_BYTES ((1 * 1 * 3) * 4)I'm not sure how to insert the correct values as well as output and process them. The code above is the declarations of the model's outputs & inputs. How can I change or use them to produce my desired array sizes mentioned above.
The model inserted is a keras model with 1 input (array of 14 float values) and 3 outputs (each with an array of 3 values).
Thanks in advance

