File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 99install :
1010 - if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then pip install http://download.pytorch.org/whl/cpu/torch-0.4.1-cp27-cp27mu-linux_x86_64.whl; fi
1111 - if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then pip install http://download.pytorch.org/whl/cpu/torch-0.4.1-cp35-cp35m-linux_x86_64.whl; fi
12- - if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then pip install http://download.pytorch.org/whl/cpu/torch-0.4.0 -cp36-cp36m-linux_x86_64.whl; fi
12+ - if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then pip install http://download.pytorch.org/whl/cpu/torch-0.4.1 -cp36-cp36m-linux_x86_64.whl; fi
1313 - pip install pycodestyle
1414 - pip install flake8
1515 - pip install codecov
Original file line number Diff line number Diff line change 1717 auto TENSOR3##_stride = TENSOR3.stride(DIM); \
1818 \
1919 auto dims = TENSOR1.dim(); \
20- auto zeros = at::zeros(torch::CPU(at::kLong), {dims}); \
20+ auto zeros = at::zeros(dims, torch::CPU(at::kLong)); \
2121 auto counter = zeros.data<int64_t>(); \
2222 bool has_finished = false; \
2323 \
7676 auto TENSOR4##_stride = TENSOR4.stride(DIM); \
7777 \
7878 auto dims = TENSOR1.dim(); \
79- auto zeros = at::zeros(torch::CPU(at::kLong), {dims}); \
79+ auto zeros = at::zeros(dims, torch::CPU(at::kLong)); \
8080 auto counter = zeros.data<int64_t>(); \
8181 bool has_finished = false; \
8282 \
You can’t perform that action at this time.
0 commit comments