Skip to content

Commit 9c8ad52

Browse files
committed
reset
1 parent de93009 commit 9c8ad52

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ matrix:
99
install:
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

cpu/dim_apply.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
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
\
@@ -76,7 +76,7 @@
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
\

0 commit comments

Comments
 (0)