https://github.com/motus/libtorchsharp
https://github.com/motus/libtorchsharp
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/motus/libtorchsharp
- Owner: motus
- Created: 2019-01-25T22:07:41.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-13T18:57:15.000Z (over 6 years ago)
- Last Synced: 2025-01-27T08:45:03.701Z (4 months ago)
- Language: C++
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# libTorchSharp
## Building instruction
### Requirements
* cmake => 3.13
* libtorch download [here](https://pytorch.org/get-started/locally/)
* Python source code win32 compiled### How to generate project files
`cmake -DTorch_DIR="YOUR_libtorch_DIR" -DPython_DIR="YOUR_Python_source_DIR" . -G "Visual Studio 15 2017 Win64"`### How to build
* Open the generated solution file, click on Properties on the LibTorch project and select Dynamic Library instead of Static in the Configuration type tab (remeber to also change the target extension).
* Build the solution
* (In case VS complains about some Python lib not in the path, go into Properties, Linked, Include, and manually include those libs)### Tested on
* Windows machine
* Python 3.6.8
* libtorch 1.0
* Visual Studio 2017 (v141, Windows SDK 10.0.17134.0)