pytorch / vision

Datasets, Transforms and Models specific to Computer Vision
https://pytorch.org/vision
BSD 3-Clause "New" or "Revised" License
16.05k stars 6.93k forks source link

Is it possible to provide prebuild c++ binaries? #7030

Open xhuan8 opened 1 year ago

xhuan8 commented 1 year ago

🚀 The feature

Torchvision c++ binaries across all plateforms

Motivation, pitch

I have a project need use torchvision c++ binary, currently we build from source, but it's hard to share, so need prebuild binaries.

Alternatives

or provider a way to automatic generate torchvision c++ binary

Additional context

No response

cerrussell commented 1 year ago

Pre-built binaries are already available via installation with Anaconda or pip.

conda install torchvision -c pytorch

pip install torchvision

xhuan8 commented 1 year ago

@cerrussell thanks for you replay,

Do you mean the file "_C.pyd"? I'm looking for something similar to libtorch, contains head, lib and dll files.

cerrussell commented 1 year ago

@xhuan8 Here's more info from the torch docs. If you're looking for the specific path of libs and dlls after installing as I described above, try (your interpreter)/Lib/site-packages/torch/lib.