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
dd662618
Commit
dd662618
authored
Feb 06, 2018
by
rusty1s
Browse files
typo
parent
fb4632ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
torch_cluster/kernel/kernel.cu
torch_cluster/kernel/kernel.cu
+1
-3
No files found.
torch_cluster/kernel/kernel.cu
View file @
dd662618
...
...
@@ -14,10 +14,8 @@
template
<
typename
Real
,
int
Dims
>
__global__
void
gridKernel
(
int64_t
*
output
,
TensorInfo
<
Real
>
position
,
Real
*
size
,
int64_t
*
count
,
const
int
C
,
const
int
N
)
{
KERNEL_LOOP
(
i
,
N
)
{
int
positionOffset
=
0
;
int
positionOffset
=
0
;
int
tmp
=
C
;
int64_t
c
=
0
;
IndexToOffset
<
Real
,
Dims
>::
compute
(
i
,
position
,
&
positionOffset
);
int
tmp
=
C
;
int64_t
c
=
0
;
for
(
int
d
=
0
;
d
<
position
.
size
[
position
.
dims
-
1
];
d
++
)
{
tmp
=
tmp
/
count
[
d
];
c
+=
tmp
*
(
int64_t
)
(
position
.
data
[
positionOffset
+
d
]
/
size
[
d
]);
...
...
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