Skip to content

Commit de93009

Browse files
committed
reset
1 parent 75dbe17 commit de93009

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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(dims, torch::CPU(at::kLong)); \
20+
auto zeros = at::zeros(torch::CPU(at::kLong), {dims}); \
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(dims, torch::CPU(at::kLong)); \
79+
auto zeros = at::zeros(torch::CPU(at::kLong), {dims}); \
8080
auto counter = zeros.data<int64_t>(); \
8181
bool has_finished = false; \
8282
\

0 commit comments

Comments
 (0)