All Questions
Tagged with libtorch visual-c++
4 questions
0
votes
0
answers
114
views
Crash of the software when forwarding a libtorch model
My software is crashing when I try to forward my libtorch model and I don't understand why. I compiled with Visual Studio 2019 (v142), ISO C++20, libtorch 2.0.0+cu118
Here is the code:
struct ...
1
vote
0
answers
289
views
Problem using libtorch and pytorch at same time: Key already registered with the same priority: C10
I'm currently trying to implement a python torch model into a C++ application in VS22. Now the problem is that the C++ part uses libtorch and part of the python code uses pytorch.
Libtorch version: ...
2
votes
0
answers
2k
views
Building libtorch with vcpkg failure
Environment
Environment:
OS: Windows 10
Python: 3.8
Visual Studio: 2019
What I Tried?
clone vcpkg github repo and install vcpkg and then enter command:
vcpkg.exe install libtorch:x64-windows
Full ...
0
votes
1
answer
653
views
LibTorch (PyTorch C++) LNK2001 errors
I was following the tutorial in LibTorch here.
With the following changes:
example-app => Ceres
example-app.cpp => main.cxx
Everything worked until the CMake command cmake --build . --config ...