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
388a2e2b
Commit
388a2e2b
authored
Mar 12, 2020
by
rusty1s
Browse files
typo
parent
4f7761ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
csrc/cuda/nearest_cuda.cu
csrc/cuda/nearest_cuda.cu
+1
-1
No files found.
csrc/cuda/nearest_cuda.cu
View file @
388a2e2b
...
@@ -73,7 +73,7 @@ torch::Tensor nearest_cuda(torch::Tensor x, torch::Tensor y,
...
@@ -73,7 +73,7 @@ torch::Tensor nearest_cuda(torch::Tensor x, torch::Tensor y,
x
=
x
.
view
({
x
.
size
(
0
),
-
1
}).
contiguous
();
x
=
x
.
view
({
x
.
size
(
0
),
-
1
}).
contiguous
();
y
=
y
.
view
({
y
.
size
(
0
),
-
1
}).
contiguous
();
y
=
y
.
view
({
y
.
size
(
0
),
-
1
}).
contiguous
();
auto
out
=
torch
::
empty
({
x
.
size
(
0
),
ptr_x
.
options
()
}
);
auto
out
=
torch
::
empty
({
x
.
size
(
0
)
}
,
ptr_x
.
options
());
auto
stream
=
at
::
cuda
::
getCurrentCUDAStream
();
auto
stream
=
at
::
cuda
::
getCurrentCUDAStream
();
AT_DISPATCH_FLOATING_TYPES
(
x
.
scalar_type
(),
"nearest_kernel"
,
[
&
]
{
AT_DISPATCH_FLOATING_TYPES
(
x
.
scalar_type
(),
"nearest_kernel"
,
[
&
]
{
...
...
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