Commit f007e92d authored by rusty1s's avatar rusty1s
Browse files

potential mac fix

parent 849cba17
...@@ -61,6 +61,7 @@ install: ...@@ -61,6 +61,7 @@ install:
- source script/conda.sh - source script/conda.sh
- conda create --yes -n test python="${PYTHON_VERSION}" - conda create --yes -n test python="${PYTHON_VERSION}"
- source activate test - source activate test
- conda install pytorch=${TORCH_VERSION} ${TOOLKIT} -c pytorch --yes
- source script/torch.sh - source script/torch.sh
- pip install flake8 codecov - pip install flake8 codecov
- python setup.py install - python setup.py install
......
#!/bin/bash #!/bin/bash
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 # Fix "member may not be initialized" error on Windows: https://github.com/pytorch/pytorch/issues/27958
if [ "${TRAVIS_OS_NAME}" = "windows" ] && [ "${IDX}" != "cpu" ]; then 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/script/module.h
......
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