Skip to content

Commit 352e197

Browse files
committed
Update install_libtorch.sh
Fix check of libtorch.zip
1 parent 5aaad89 commit 352e197

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

toolchain/scripts/stage4/install_libtorch.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ case "${with_libtorch}" in
4646
if verify_checksums "${install_lock_file}"; then
4747
echo "${filename} is already installed, skipping it."
4848
else
49-
if [ -f ${archive_file} ]; then
50-
echo "${archive_file} is found"
49+
if [ -f ${filename} ]; then
50+
echo "${filename} is found"
5151
else
5252
# download from pytorch.com and checksum
5353
url=https://download.pytorch.org/libtorch/cpu/${archive_file}

0 commit comments

Comments
 (0)