Skip to content

Commit 849cba1

Browse files
committed
potential mac fix
1 parent fd26577 commit 849cba1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

script/torch.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
#!/bin/bash
22

3-
conda install pytorch="${TORCH_VERSION}" "${TOOLKIT}" -c pytorch --yes
3+
if [ "${TRAVIS_OS_NAME}" != "osx" ]; then
4+
conda install pytorch="${TORCH_VERSION}" "${TOOLKIT}" -c pytorch --yes
5+
fi
6+
7+
if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
8+
conda install pytorch="${TORCH_VERSION}" -c pytorch --yes
9+
fi
410

511
# Fix "member may not be initialized" error on Windows: https://github.com/pytorch/pytorch/issues/27958
612
if [ "${TRAVIS_OS_NAME}" = "windows" ] && [ "${IDX}" != "cpu" ]; then

0 commit comments

Comments
 (0)