Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
torch-scatter
Commits
de930090
Commit
de930090
authored
Aug 06, 2018
by
rusty1s
Browse files
reset
parent
75dbe175
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cpu/dim_apply.h
cpu/dim_apply.h
+2
-2
No files found.
cpu/dim_apply.h
View file @
de930090
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
auto TENSOR3##_stride = TENSOR3.stride(DIM); \
auto TENSOR3##_stride = TENSOR3.stride(DIM); \
\
\
auto dims = TENSOR1.dim(); \
auto dims = TENSOR1.dim(); \
auto zeros = at::zeros(
dims,
torch::CPU(at::kLong));
\
auto zeros = at::zeros(torch::CPU(at::kLong)
, {dims}
); \
auto counter = zeros.data<int64_t>(); \
auto counter = zeros.data<int64_t>(); \
bool has_finished = false; \
bool has_finished = false; \
\
\
...
@@ -76,7 +76,7 @@
...
@@ -76,7 +76,7 @@
auto TENSOR4##_stride = TENSOR4.stride(DIM); \
auto TENSOR4##_stride = TENSOR4.stride(DIM); \
\
\
auto dims = TENSOR1.dim(); \
auto dims = TENSOR1.dim(); \
auto zeros = at::zeros(
dims,
torch::CPU(at::kLong));
\
auto zeros = at::zeros(torch::CPU(at::kLong)
, {dims}
); \
auto counter = zeros.data<int64_t>(); \
auto counter = zeros.data<int64_t>(); \
bool has_finished = false; \
bool has_finished = false; \
\
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment