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-scatter
Commits
8e0bd4af
Commit
8e0bd4af
authored
Aug 07, 2018
by
Matthias Fey
Committed by
GitHub
Aug 07, 2018
Browse files
Update ext.py
parent
d60df4b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
torch_scatter/utils/ext.py
torch_scatter/utils/ext.py
+2
-2
No files found.
torch_scatter/utils/ext.py
View file @
8e0bd4af
...
...
@@ -6,5 +6,5 @@ if torch.cuda.is_available():
def
get_func
(
name
,
tensor
):
scatter
=
scatter_cuda
if
tensor
.
is_cuda
else
scatter_cpu
return
getattr
(
scatter
,
name
)
module
=
scatter_cuda
if
tensor
.
is_cuda
else
scatter_cpu
return
getattr
(
module
,
name
)
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