File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 9898
9999# Fix Cuda9.2 on Windows: https://github.com/pytorch/pytorch/issues/6109
100100if [ " ${TRAVIS_OS_NAME} " = " windows" ] && [ " ${IDX} " = " cu92" ]; then
101- cat -n " ${CUDA_HOME} /include/crt/host_config.h"
102101 sed -i.bak -e ' 129,141d' " ${CUDA_HOME} /include/crt/host_config.h"
103- cat -n " ${CUDA_HOME} /include/crt/host_config.h"
104102fi
105103
106104# Fix "member may not be initialized" error on Windows: https://github.com/pytorch/pytorch/issues/27958
107105if [ " ${TRAVIS_OS_NAME} " = " windows" ] && [ " ${IDX} " != " cpu" ]; then
108106 sed -i.bak -e ' s/constexpr/const/g' /c/tools/miniconda3/envs/test/lib/site-packages/torch/include/torch/csrc/jit/script/module.h
109- sed -i.bak -e ' s/constexpr/const/g' /c/tools/miniconda3/envs/test/lib/site-packages/torch/include/torch/csrc/jit/script/ argument_spec.h
107+ sed -i.bak -e ' s/constexpr/const/g' /c/tools/miniconda3/envs/test/lib/site-packages/torch/include/torch/csrc/jit/argument_spec.h
110108 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
111109fi
You can’t perform that action at this time.
0 commit comments