File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,10 @@ ImportError: DLL load failed: The specified procedure could not be found.
88
88
You can download it and put it in the PyTorch directory or use it in a standalone way.
89
89
There're more details about MSVC 2017 setup in [ #23 ] ( https://github.com/peterjc123/pytorch-scripts/issues/23 ) .
90
90
``` Powershell
91
+ # You can specify which version you want to build
92
+ # If you omit it, it will build for the master branch on default
93
+ set PYTORCH_BUILD_VERSION=0.4.1
94
+
91
95
# If you don't want to override the default settings
92
96
auto.bat
93
97
Original file line number Diff line number Diff line change 1
1
@ echo off
2
2
3
3
git clone --recursive https://github.com/pytorch/pytorch
4
+
5
+ IF NOT " %PYTORCH_BUILD_VERSION% " == " " (
6
+ git checkout tags/v%PYTORCH_BUILD_VERSION%
7
+ IF ERRORLEVEL 1 git checkout v%PYTORCH_BUILD_VERSION%
8
+ IF ERRORLEVEL 1 (
9
+ echo Version %PYTORCH_BUILD_VERSION% not found, staying on the master branch
10
+ ) ELSE (
11
+ echo Building for version %PYTORCH_BUILD_VERSION%
12
+ )
13
+ )
14
+
4
15
cd pytorch
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ if "%NO_CUDA%"=="" echo CUDA_PATH=%CUDA_PATH%
7
7
if NOT " %CC% " == " " echo CC=%CC%
8
8
if NOT " %CXX% " == " " echo CXX=%CXX%
9
9
if NOT " %DISTUTILS_USE_SDK% " == " " echo DISTUTILS_USE_SDK=%DISTUTILS_USE_SDK%
10
+ IF NOT " %PYTORCH_BUILD_VERSION% " == " " echo PYTORCH_BUILD_VERSION=%PYTORCH_BUILD_VERSION%
10
11
11
12
setlocal EnableDelayedExpansion
12
13
IF /I " %~1 " NEQ " /y" (
You can’t perform that action at this time.
0 commit comments