cancel
Showing results for 
Search instead for 
Did you mean: 

Conversion error when using ai_network_create(&network, AI_NETWORK_DATA_CONFIG) function

JLIU.9
Associate

Hello, I meet an error when I try to use the function ai_network_create() as the format of tutorial,

The error report is:

invalid conversion from 'ai_handle {aka void*}' to ‘const ai_buffer*{aka const ai_buffer_*}’

However, I see every one use such function to initialize a instance for network, so how can I fix the problem?

2 REPLIES 2
ODönm.1
Associate

Hello, i get the same error und i have no idea about it. Did you solved this issue?

jean-michel.d
ST Employee

Hello,

Can you add more details about the used tool-chain?

For STM32, the generated Ai_NETWORK_DATA_CONFIG is always NULL. Instead to use the generated define, you can call the function with "NULL" as second parameter.

br,

jm