cancel
Showing results for 
Search instead for 
Did you mean: 

How to set input data in application template using CubeMx.Ai

Swu.4
Associate II

In the project, the input data of keras model is a 2-d vector consisted of float x1 and float x2. But in the cubemx.ai generated application template code, the data type is ai_u8 as follows:

 ai_u8 *in_data = NULL;

 ai_u8 *out_data = NULL;

Then ,I modified it as follows :

 ai_float *in_data = NULL;

 ai_float *out_data = NULL;

 in_data[0]=0.1;

 in_data[1]=-0.1;

But it will got errors as follows while ai_run(in_data, out_data) executed.

TEMPLATE -Error (ai_network_run) -type=0x12 code=0x17

Then How to set input data in application template, and where can I got the codes details of the error, I look forward to your reply.Thanks a lot!

0 REPLIES 0