Hi Devzone
I need to include C++ standard library <memory> to use tensorflow lite.
Other libraries included well. but I don't know the way to include C++ standard library.
How can I do this?
Best regards,
Baek
Hi Devzone
I need to include C++ standard library <memory> to use tensorflow lite.
Other libraries included well. but I don't know the way to include C++ standard library.
How can I do this?
Best regards,
Baek
Hi Baek,
I am not sure I understand your question. Where are you attempting to include the <memory> C++ standard library?
Are you working out of one of the examples from the SDK? and which IDE are you using?
Since <memory> is a C++ standard library, it is not readily available to include in a C program.
Mixing C and C++ code can be done, but it requires some overhead to achieve proper function.
Reading up on TensorFlow for Microcontrollers it seems this overhead has been taken care of by TensorFlow, in the Arduino library for TensorFlow Lite. Are you using the library made for Arduino in the Arduino IDE, or are you using TensorFlow Lite micro from source following their guide? In their source it is emphasized that they do not use the <memory> library, but instead they make use of standard C memory allocation functions.
Best regards,
Karl
Hi Baek,
I am not sure I understand your question. Where are you attempting to include the <memory> C++ standard library?
Are you working out of one of the examples from the SDK? and which IDE are you using?
Since <memory> is a C++ standard library, it is not readily available to include in a C program.
Mixing C and C++ code can be done, but it requires some overhead to achieve proper function.
Reading up on TensorFlow for Microcontrollers it seems this overhead has been taken care of by TensorFlow, in the Arduino library for TensorFlow Lite. Are you using the library made for Arduino in the Arduino IDE, or are you using TensorFlow Lite micro from source following their guide? In their source it is emphasized that they do not use the <memory> library, but instead they make use of standard C memory allocation functions.
Best regards,
Karl