We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75dbe17 commit de93009Copy full SHA for de93009
cpu/dim_apply.h
@@ -17,7 +17,7 @@
17
auto TENSOR3##_stride = TENSOR3.stride(DIM); \
18
\
19
auto dims = TENSOR1.dim(); \
20
- auto zeros = at::zeros(dims, torch::CPU(at::kLong)); \
+ auto zeros = at::zeros(torch::CPU(at::kLong), {dims}); \
21
auto counter = zeros.data<int64_t>(); \
22
bool has_finished = false; \
23
@@ -76,7 +76,7 @@
76
auto TENSOR4##_stride = TENSOR4.stride(DIM); \
77
78
79
80
81
82
0 commit comments