Commit 8e0bd4af authored by Matthias Fey's avatar Matthias Fey Committed by GitHub
Browse files

Update ext.py

parent d60df4b8
...@@ -6,5 +6,5 @@ if torch.cuda.is_available(): ...@@ -6,5 +6,5 @@ if torch.cuda.is_available():
def get_func(name, tensor): def get_func(name, tensor):
scatter = scatter_cuda if tensor.is_cuda else scatter_cpu module = scatter_cuda if tensor.is_cuda else scatter_cpu
return getattr(scatter, name) return getattr(module, name)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment