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
ea7df4db
Commit
ea7df4db
authored
Nov 15, 2018
by
rusty1s
Browse files
conditional import
parent
66eef3b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
torch_cluster/sample.py
torch_cluster/sample.py
+2
-1
No files found.
torch_cluster/sample.py
View file @
ea7df4db
import
torch
from
sample_cuda
import
farthest_point_sampling
,
query_radius
,
query_knn
if
torch
.
cuda
.
is_available
():
from
sample_cuda
import
farthest_point_sampling
,
query_radius
,
query_knn
def
batch_slices
(
batch
,
sizes
=
False
,
include_ends
=
True
):
...
...
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