File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 22
33# Fix "member may not be initialized" error on Windows: https://github.com/pytorch/pytorch/issues/27958
44if [ " ${TRAVIS_OS_NAME} " = " windows" ] && [ " ${TORCH_VERSION} " = " 1.5.0" ]; then
5+ echo " Fix nvcc for PyTorch 1.5.0"
56 sed -i.bak -e ' s/constexpr/const/g' /c/tools/miniconda3/envs/test/lib/site-packages/torch/include/torch/csrc/jit/api/module.h
67 sed -i.bak -e ' s/constexpr/const/g' /c/tools/miniconda3/envs/test/lib/site-packages/torch/include/torch/csrc/jit/runtime/argument_spec.h
78 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
89fi
910
10- https://github.com/pytorch/pytorch/commit/d2e16dd888a9b5fd55bd475d4fcffb70f388d4f0
11+ # https://github.com/pytorch/pytorch/commit/d2e16dd888a9b5fd55bd475d4fcffb70f388d4f0
1112if [ " ${TRAVIS_OS_NAME} " = " windows" ] && [ " ${TORCH_VERSION} " = " 1.6.0" ]; then
13+ echo " Fix nvcc for PyTorch 1.6.0"
1214 sed -i.bak -e ' s/constexpr/CONSTEXPR_EXCEPT_WIN_CUDA/g' /c/tools/miniconda3/envs/test/lib/site-packages/torch/include/torch/csrc/jit/api/module.h
1315fi
You can’t perform that action at this time.
0 commit comments