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
5909accb
Commit
5909accb
authored
Aug 06, 2018
by
rusty1s
Browse files
LAST TEST
parent
8dc17e4d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
cpu/scatter.cpp
cpu/scatter.cpp
+3
-2
No files found.
cpu/scatter.cpp
View file @
5909accb
...
@@ -4,8 +4,9 @@
...
@@ -4,8 +4,9 @@
void
scatter_mul
(
at
::
Tensor
src
,
at
::
Tensor
index
,
at
::
Tensor
out
,
void
scatter_mul
(
at
::
Tensor
src
,
at
::
Tensor
index
,
at
::
Tensor
out
,
int64_t
dim
)
{
int64_t
dim
)
{
int64_t
elems_per_row
=
index
.
size
(
dim
),
i
,
idx
;
printf
(
"HUHUHUHU"
);
printf
(
"elems_per_row: %lli
\n
"
,
elems_per_row
);
// int64_t elems_per_row = index.size(dim), i, idx;
// printf("elems_per_row: %lli\n", elems_per_row);
// AT_DISPATCH_ALL_TYPES(src.type(), "scatter_mul", [&] {
// AT_DISPATCH_ALL_TYPES(src.type(), "scatter_mul", [&] {
// DIM_APPLY3(scalar_t, src, int64_t, index, scalar_t, out, dim, {
// DIM_APPLY3(scalar_t, src, int64_t, index, scalar_t, out, dim, {
// for (i = 0; i < elems_per_row; i++) {
// for (i = 0; i < elems_per_row; i++) {
...
...
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