Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
torch-scatter
Commits
849cba17
Commit
849cba17
authored
Feb 13, 2020
by
rusty1s
Browse files
potential mac fix
parent
fd265775
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
script/torch.sh
script/torch.sh
+7
-1
No files found.
script/torch.sh
View file @
849cba17
#!/bin/bash
conda
install
pytorch
=
"
${
TORCH_VERSION
}
"
"
${
TOOLKIT
}
"
-c
pytorch
--yes
if
[
"
${
TRAVIS_OS_NAME
}
"
!=
"osx"
]
;
then
conda
install
pytorch
=
"
${
TORCH_VERSION
}
"
"
${
TOOLKIT
}
"
-c
pytorch
--yes
fi
if
[
"
${
TRAVIS_OS_NAME
}
"
=
"osx"
]
;
then
conda
install
pytorch
=
"
${
TORCH_VERSION
}
"
-c
pytorch
--yes
fi
# Fix "member may not be initialized" error on Windows: https://github.com/pytorch/pytorch/issues/27958
if
[
"
${
TRAVIS_OS_NAME
}
"
=
"windows"
]
&&
[
"
${
IDX
}
"
!=
"cpu"
]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment