Skip to content
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

[ML] Upgrade to PyTorch 1.11 on Windows #2233

Merged
merged 1 commit into from
Mar 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions build-setup/windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ On the "Advanced Options" screen, check "Install for all users" and "Add Python

For the time being, do not take advantage of the option on the final installer screen to reconfigure the machine to allow paths longer than 260 characters. We still support Windows versions that do not have this option.

### PyTorch 1.9.0
### PyTorch 1.11.0

PyTorch requires that certain Python modules are installed. Start a command prompt "cmd.exe" using "Run as administrator". In it run:

Expand All @@ -227,7 +227,7 @@ Next, in a Git bash shell run:

```
cd /c/tools
git clone --depth=1 --branch=v1.9.0 [email protected]:pytorch/pytorch.git
git clone --depth=1 --branch=v1.11.0 [email protected]:pytorch/pytorch.git
cd pytorch
git submodule sync
git submodule update --init --recursive
Expand Down Expand Up @@ -278,7 +278,7 @@ set USE_QNNPACK=OFF
set USE_PYTORCH_QNNPACK=OFF
set USE_XNNPACK=OFF
set MSVC_Z7_OVERRIDE=OFF
set PYTORCH_BUILD_VERSION=1.9.0
set PYTORCH_BUILD_VERSION=1.11.0
set PYTORCH_BUILD_NUMBER=1
python setup.py install
```
Expand Down
4 changes: 2 additions & 2 deletions dev-tools/download_windows_deps.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
# limitation.
#
$ErrorActionPreference="Stop"
$Archive="usr-x86_64-windows-2016-5.zip"
$Archive="usr-x86_64-windows-2016-6.zip"
$Destination="C:\"
if (!(Test-Path "$Destination\usr\local\lib\boost_system-vc142-mt-x64-1_77.dll")) {
if (!(Test-Path "$Destination\usr\local\include\pytorch\torch\csrc\profiler\api.h")) {
Remove-Item "$Destination\usr" -Recurse -Force -ErrorAction Ignore
$ZipSource="https://s3-eu-west-1.amazonaws.com/prelert-artifacts/dependencies/$Archive"
$ZipDestination="$Env:TEMP\$Archive"
Expand Down