Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Commit 73e150a

Browse files
peterjc123soumith
authored andcommitted
Fix minor bug in Windows LibTorch
1 parent 16772b8 commit 73e150a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

windows/internal/setup.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ move /Y libtorch\bin\*.dll libtorch\lib\
6161

6262
git rev-parse HEAD > libtorch\build-hash
6363

64-
7z a -tzip libtorch-win-%VARIANT%-%PYTORCH_BUILD_VERSION%.zip libtorch\*
65-
6664
IF "%DEBUG%" == "" (
6765
set LIBTORCH_PREFIX=libtorch-win-%VARIANT%
6866
) ELSE (
6967
set LIBTORCH_PREFIX=libtorch-win-%VARIANT%-debug
7068
)
7169

70+
7z a -tzip %LIBTORCH_PREFIX%-%PYTORCH_BUILD_VERSION%.zip libtorch\*
71+
7272
mkdir ..\output\%CUDA_PREFIX%
7373
copy /Y %LIBTORCH_PREFIX%-%PYTORCH_BUILD_VERSION%.zip ..\output\%CUDA_PREFIX%\
7474
copy /Y %LIBTORCH_PREFIX%-%PYTORCH_BUILD_VERSION%.zip ..\output\%CUDA_PREFIX%\%LIBTORCH_PREFIX%-latest.zip

0 commit comments

Comments
 (0)