-
-
Notifications
You must be signed in to change notification settings - Fork 56
Static LibTorch mobile build for windows #59
Comments
The available options are:
From the latest comment, it seems that you'll need to use BTW, I'm just curious about your use case. What do you use LibTorch mobile build on Windows for? |
Thanks! @peterjc123 for the response. We'll try We use client-side inference for semantic text analysis, and we package it with the desktop application. Currently using OpenCV DNN for image models and works perfectly. But for text and a few advanced use cases DNN doesn't support a few network layers so trying to bring LibTorch in our system. We have built a static LibTorch Mobile library for Linux and Mac and it works. Windows is something new for us and also a bit tricky. |
@peterjc123 We have slightly modified pytorch/scripts/build_mobile.sh to run in Windows. torch_cpu.lib size for Release is 711MB and MinSizeRel reduced it to 645MB Set-up |
As for Clang builds, you could try http://blog.llvm.org/2018/11/30-faster-windows-builds-with-clang-cl_14.html and make sure you use |
Also could you please check that you have turned off all the debugging flags like |
@peterjc123 Would it be possible to build a static LibTorch build for Windows, right now we are facing a couple of issues
It would be helpful if you have any suggestions to get a static library
The text was updated successfully, but these errors were encountered: