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
vision
Commits
add2ecc7
Commit
add2ecc7
authored
Jan 15, 2020
by
Soumith Chintala
Browse files
CUDA_SUFFIX -> PYTORCH_VERSION_SUFFIX
parent
32df87a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
packaging/pkg_helpers.bash
packaging/pkg_helpers.bash
+2
-2
No files found.
packaging/pkg_helpers.bash
View file @
add2ecc7
...
...
@@ -184,7 +184,7 @@ setup_pip_pytorch_version() {
export
PYTORCH_VERSION
=
"
$(
pip show torch |
grep
^Version: |
sed
's/Version: *//'
)
"
fi
else
pip_install
"torch==
$PYTORCH_VERSION$
CUDA
_SUFFIX
"
\
pip_install
"torch==
$PYTORCH_VERSION$
PYTORCH_VERSION
_SUFFIX
"
\
-f
https://download.pytorch.org/whl/torch_stable.html
\
-f
https://download.pytorch.org/whl/nightly/torch_nightly.html
fi
...
...
@@ -193,7 +193,7 @@ setup_pip_pytorch_version() {
# Fill PYTORCH_VERSION with the latest conda nightly version, and
# CONDA_CHANNEL_FLAGS with appropriate flags to retrieve these versions
#
# You MUST have populated
CUDA
_SUFFIX before hand.
# You MUST have populated
PYTORCH_VERSION
_SUFFIX before hand.
setup_conda_pytorch_constraint
()
{
if
[[
-z
"
$PYTORCH_VERSION
"
]]
;
then
export
CONDA_CHANNEL_FLAGS
=
"-c pytorch-nightly"
...
...
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