Skip to main content
JLIU.9
Visitor II
June 6, 2019
Question

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

  • June 6, 2019
  • 2 replies
  • 966 views

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?

    This topic has been closed for replies.

    2 replies

    ODönm.1
    Visitor II
    August 18, 2020

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

    ST Employee
    September 15, 2020

    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