TFLite For Microcontrollers In VS2019 On Windows

已查看 235 次
跳至第一个未读帖子

Jonathan Torkelson

未读,
2021年2月28日 19:05:522021/2/28
收件人 SIG Build
Hello,
Is there currently any option to build and run a TFLite for Microcontrollers application in VS2019 on Windows using MSVC? I don't believe there's anything like that in the GitHub repository, and the TFLite for Microcontrollers Make/CMake/Bazel examples I have tried seem to fail. 

I was able to get an old version of Tensorflow Lite to compile in VS2019, however I've been running into issues with 2.4.1. There seems to be some issues that MSVC compiler has with the code that GNU is OK with, things like constant empty array initializers. Just interested in seeing if this is already available somewhere.

Thanks!

Austin Anderson

未读,
2021年3月1日 12:36:082021/3/1
收件人 Jonathan Torkelson、SIG Build
Hey Jonathan,

What build steps are you following? Can you link to the instructions you're using?

You could also try downgrading MSVC. There's at least one bug in MSVC 14.28 affecting the latest TensorFlow, and MSVC 14.27 ("Microsoft.VisualStudio.Component.VC.14.27.x86.x64" in .vsconfig) worked better for us. 

Austin

--
To unsubscribe from this group and stop receiving emails from it, send an email to build+un...@tensorflow.org.

Jonathan Torkelson

未读,
2021年3月1日 13:02:172021/3/1
收件人 SIG Build、Austin Anderson、SIG Build、Jonathan Torkelson
Hi Austin,
Some time back with an older version of Tensorflow (2.0.0 I believe), I used make to build the magic_wand example. This pulled dependencies down into my PC, and from there I was able to tediously pull this into a Visual C project and build it. This Visual C build of the old Tensorflow Lite for Microcontrollers code is having issues interpreting a model I created with 2.4.1, so I have been trying to redo everything with the latest.

I have tried the following:
  • CMake build of Tensorflow Lite in Windows. This had bugs that were fixed over the weekend, but now builds for me. See this issue for all the gory details. This morning I have started trying to pull the code into a Visual C project, but am floundering, trying to find exactly what is and isn't needed from Tensorflow Lite. There's just too much code.
  • Make build of the magic wand example. See this issue for the details on that. If this built properly, then I would at least have a basic microcontroller example that built on my Windows machine that I could use as a reference. My build details are at the top of that issue. Make currently doesn't appear to work for the TFLite for Microcontrollers examples on Windows, only Linux. " amahendrakar" in that issue referenced me to other issues, but no solution. 
I'm trying to get Tensorflow Lite building and running in our embedded hardware virtualization platform, Virtuoso, so developers can just download an example project and debug it in Visual Studio, even pull in real-world I/O. But my immediate need is using it in a critical project. I have a model trained and ready to deploy, but the interpreter is returning null pointers for the input and output tensors.

Thanks!

回复全部
回复作者
转发
0 个新帖子