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
511f78e4
Commit
511f78e4
authored
Jan 31, 2018
by
rusty1s
Browse files
added no cover
parent
b6f07738
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
torch_cluster/functions/utils.py
torch_cluster/functions/utils.py
+3
-3
No files found.
torch_cluster/functions/utils.py
View file @
511f78e4
...
...
@@ -14,11 +14,11 @@ def get_func(name, tensor):
def
get_type
(
max
,
cuda
):
if
max
<=
255
:
return
torch
.
cuda
.
ByteTensor
if
cuda
else
torch
.
ByteTensor
elif
max
<=
32767
:
elif
max
<=
32767
:
# pragma: no cover
return
torch
.
cuda
.
ShortTensor
if
cuda
else
torch
.
ShortTensor
elif
max
<=
2147483647
:
elif
max
<=
2147483647
:
# pragma: no cover
return
torch
.
cuda
.
IntTensor
if
cuda
else
torch
.
IntTensor
else
:
else
:
# pragma: no cover
return
torch
.
cuda
.
LongTensor
if
cuda
else
torch
.
LongTensor
...
...
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