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
fd265775
Commit
fd265775
authored
Feb 13, 2020
by
rusty1s
Browse files
fix install
parent
19deedfc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
9 deletions
+14
-9
.travis.yml
.travis.yml
+3
-0
script/conda.sh
script/conda.sh
+0
-9
script/torch.sh
script/torch.sh
+11
-0
No files found.
.travis.yml
View file @
fd265775
...
@@ -59,6 +59,9 @@ jobs:
...
@@ -59,6 +59,9 @@ jobs:
install
:
install
:
-
source script/cuda.sh
-
source script/cuda.sh
-
source script/conda.sh
-
source script/conda.sh
-
conda create --yes -n test python="${PYTHON_VERSION}"
-
source activate test
-
source script/torch.sh
-
pip install flake8 codecov
-
pip install flake8 codecov
-
python setup.py install
-
python setup.py install
...
...
script/conda.sh
View file @
fd265775
...
@@ -24,12 +24,3 @@ fi
...
@@ -24,12 +24,3 @@ fi
conda update
--yes
conda
conda update
--yes
conda
conda create
--yes
-n
test
python
=
"
${
PYTHON_VERSION
}
"
conda create
--yes
-n
test
python
=
"
${
PYTHON_VERSION
}
"
source
activate
test
conda
install
pytorch
=
"
${
TORCH_VERSION
}
"
"
${
TOOLKIT
}
"
-c
pytorch
--yes
# Fix "member may not be initialized" error on Windows: https://github.com/pytorch/pytorch/issues/27958
if
[
"
${
TRAVIS_OS_NAME
}
"
=
"windows"
]
&&
[
"
${
IDX
}
"
!=
"cpu"
]
;
then
sed
-i
.bak
-e
's/constexpr/const/g'
/c/tools/miniconda3/envs/test/lib/site-packages/torch/include/torch/csrc/jit/script/module.h
sed
-i
.bak
-e
's/constexpr/const/g'
/c/tools/miniconda3/envs/test/lib/site-packages/torch/include/torch/csrc/jit/argument_spec.h
sed
-i
.bak
-e
's/return \*(this->value)/return \*((type\*)this->value)/g'
/c/tools/miniconda3/envs/test/lib/site-packages/torch/include/pybind11/cast.h
fi
script/torch.sh
0 → 100755
View file @
fd265775
#!/bin/bash
conda
install
pytorch
=
"
${
TORCH_VERSION
}
"
"
${
TOOLKIT
}
"
-c
pytorch
--yes
# Fix "member may not be initialized" error on Windows: https://github.com/pytorch/pytorch/issues/27958
if
[
"
${
TRAVIS_OS_NAME
}
"
=
"windows"
]
&&
[
"
${
IDX
}
"
!=
"cpu"
]
;
then
sed
-i
.bak
-e
's/constexpr/const/g'
/c/tools/miniconda3/envs/test/lib/site-packages/torch/include/torch/csrc/jit/script/module.h
sed
-i
.bak
-e
's/constexpr/const/g'
/c/tools/miniconda3/envs/test/lib/site-packages/torch/include/torch/csrc/jit/argument_spec.h
sed
-i
.bak
-e
's/return \*(this->value)/return \*((type\*)this->value)/g'
/c/tools/miniconda3/envs/test/lib/site-packages/torch/include/pybind11/cast.h
fi
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