File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
33# Fix "member may not be initialized" error on Windows: https://github.com/pytorch/pytorch/issues/27958
4- if [ " ${TRAVIS_OS_NAME} " = " windows" ] && [ " ${TORCH_VERSION} " ! = " 1.5.0" ]; then
4+ if [ " ${TRAVIS_OS_NAME} " = " windows" ] && [ " ${TORCH_VERSION} " = " 1.5.0" ]; then
55 sed -i.bak -e ' s/constexpr/const/g' /c/tools/miniconda3/envs/test/lib/site-packages/torch/include/torch/csrc/jit/api/module.h
66 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
77 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
88fi
99
10- # https://github.com/pytorch/pytorch/commit/d2e16dd888a9b5fd55bd475d4fcffb70f388d4f0
11- # if [ "${TRAVIS_OS_NAME}" = "windows" ]; then
12- # 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
13- # fi
10+ https://github.com/pytorch/pytorch/commit/d2e16dd888a9b5fd55bd475d4fcffb70f388d4f0
11+ if [ " ${TRAVIS_OS_NAME} " = " windows" ] && [ " ${TORCH_VERSION} " = " 1.6.0 " ]; then
12+ 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
13+ fi
You can’t perform that action at this time.
0 commit comments