"mmdet3d/vscode:/vscode.git/clone" did not exist on "d1f7d1ad92c759bd0792e7bf92f928693eae88ed"
Commit fd265775 authored by rusty1s's avatar rusty1s
Browse files

fix install

parent 19deedfc
...@@ -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
......
...@@ -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
#!/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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment