-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add libtorch #5209
Comments
Currently I'm blocked by the fact that during cmake configure step it needs an python installation with yaml package. How do you handle those cases normally? |
Will start an pull request for cooperate work soon. Some updates so far:
|
From 1.0 release pytorch seems to be a fusion of torch+pytorch+caffe2+onnx in a single package. So I suggest to discontinue caffe2 port and continue only with libtorch (c++ frontend of pytorch) Edit: |
If build without python, libtorch shouldn't depend on pybind11. But still it tries to include some pybind headers. Building with pybind11 now. However libtorch build process requires python.exe. If set to the python executable in tools directory, pybind11 complains that this executable is 32bit... Since I'm not sure if downloading and installing an x64 portable python will result in linking to the wrong libraries, I will change the python3 port to build with the python3.exe as tools |
pytorch build needs an python.exe to be set. But then pybind11 cmake targets wrongly search libraries relative to this exe instead of using the correct libraries from the python3 port. I got it to build with an very ugly port file, many hacks and some hidden deps.... |
@Fleischner could you share what you have so far? I am interested in this too. Is it easy to build it without python? |
We can’t reopen this issue until a PR is opened, unfortunately, consider making a pull request! |
I need this, please consider again. |
Need this also |
I want to know if libtorch could build with CUDA and CUDNN on vcpkg now ?I didn't see any dependencies about that when I run 'vcpkg search libtorch'. |
It will be nice to have libtorch (c++ library from PyTorch ) on vcpkg,
The github repo https://github.com/pytorch/pytorch
The text was updated successfully, but these errors were encountered: