2019-08-06 12:24 AM
We have a trained keras model, and we we are trying to deploy it on the stm32. We successfully loaded the model on cubeMX and can see the generated code in Keil.(attached .h and .c files).
WE are having difficulty understanding what to pass as arguments to the create function below - Any suggestions would be of great help.
ai_error ai_rnn2_create(
ai_handle* network, const ai_buffer* network_config);
thank you
siva
2019-08-06 06:28 AM
Hello,
If you looking for an example of code you can:
Hope this can help you!
Romain
2019-08-08 11:35 PM
Hi,
Thank you for the reply.
For learning purpose I tried to work on your model(keras house prediction), and converted the same with "cube-ai", when tried to build the project I am getting this error, error: #3626: a designator cannot be used with a non-aggregate type "ai_buffer_format"
Attached an image of the same, please have a look.I couldn't clearly understand the problem, can you let me know what is the problem?
2019-08-09 02:48 AM
Hello,
I tried with the new version X-Cube-AI 4.0.0
The problem is caused by the '{...}' around AI_NETWORK_IN
You have to remove the '{}' around AI_NETWORK_IN => ai_buffer input_data[AI_NETWORK_IN_NUM] = AI_NETWORK_IN;
Romain