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-cluster
Commits
a2f2986a
Commit
a2f2986a
authored
Jan 13, 2018
by
rusty1s
Browse files
no need to convert
parent
56ae40e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torch_cluster/src/generic/cpu.c
torch_cluster/src/generic/cpu.c
+1
-1
No files found.
torch_cluster/src/generic/cpu.c
View file @
a2f2986a
...
@@ -11,7 +11,7 @@ void cluster_(grid)(int C, THLongTensor *output, THTensor *position, THTensor *s
...
@@ -11,7 +11,7 @@ void cluster_(grid)(int C, THLongTensor *output, THTensor *position, THTensor *s
tmp
=
C
;
c
=
0
;
tmp
=
C
;
c
=
0
;
for
(
i
=
0
;
i
<
d
;
i
++
)
{
for
(
i
=
0
;
i
<
d
;
i
++
)
{
tmp
=
tmp
/
*
(
count_data
+
i
);
tmp
=
tmp
/
*
(
count_data
+
i
);
c
+=
tmp
*
(
int64_t
)
floor
(
(
float
)(
*
(
position_data
+
i
*
position_stride
)
/
*
(
size_data
+
i
))
)
;
c
+=
tmp
*
(
int64_t
)
floor
(
*
(
position_data
+
i
*
position_stride
)
/
*
(
size_data
+
i
));
}
}
output_data
[
0
]
=
c
;
output_data
[
0
]
=
c
;
)
)
...
...
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