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
5ab67263
Commit
5ab67263
authored
Oct 07, 2021
by
rusty1s
Browse files
typo
parent
04f797ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torch_cluster/__init__.py
torch_cluster/__init__.py
+1
-1
No files found.
torch_cluster/__init__.py
View file @
5ab67263
...
@@ -20,7 +20,7 @@ for library in [
...
@@ -20,7 +20,7 @@ for library in [
raise
ImportError
(
f
"Could not find module '
{
library
}
_cpu' in "
raise
ImportError
(
f
"Could not find module '
{
library
}
_cpu' in "
f
"
{
osp
.
dirname
(
__file__
)
}
"
)
f
"
{
osp
.
dirname
(
__file__
)
}
"
)
cuda_version
=
torch
.
ops
.
torch_
sparse
.
cuda_version
()
cuda_version
=
torch
.
ops
.
torch_
cluster
.
cuda_version
()
if
torch
.
cuda
.
is_available
()
and
cuda_version
!=
-
1
:
# pragma: no cover
if
torch
.
cuda
.
is_available
()
and
cuda_version
!=
-
1
:
# pragma: no cover
if
cuda_version
<
10000
:
if
cuda_version
<
10000
:
major
,
minor
=
int
(
str
(
cuda_version
)[
0
]),
int
(
str
(
cuda_version
)[
2
])
major
,
minor
=
int
(
str
(
cuda_version
)[
0
]),
int
(
str
(
cuda_version
)[
2
])
...
...
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