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-spline-conv
Commits
18411366
"src/array/vscode:/vscode.git/clone" did not exist on "75ec58260aae12b963bbfa2f3eba49bd0eb964cf"
Commit
18411366
authored
Mar 25, 2022
by
rusty1s
Browse files
fix cuda context
parent
67d63167
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
torch_spline_conv/__init__.py
torch_spline_conv/__init__.py
+2
-2
No files found.
torch_spline_conv/__init__.py
View file @
18411366
...
@@ -18,7 +18,7 @@ for library in ['_version', '_basis', '_weighting']:
...
@@ -18,7 +18,7 @@ for library in ['_version', '_basis', '_weighting']:
f
"
{
osp
.
dirname
(
__file__
)
}
"
)
f
"
{
osp
.
dirname
(
__file__
)
}
"
)
cuda_version
=
torch
.
ops
.
torch_spline_conv
.
cuda_version
()
cuda_version
=
torch
.
ops
.
torch_spline_conv
.
cuda_version
()
if
torch
.
cuda
.
is
_available
()
and
cuda_version
!=
-
1
:
# pragma: no cover
if
torch
.
version
.
cuda
is
not
None
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
])
else
:
else
:
...
@@ -34,8 +34,8 @@ if torch.cuda.is_available() and cuda_version != -1: # pragma: no cover
...
@@ -34,8 +34,8 @@ if torch.cuda.is_available() and cuda_version != -1: # pragma: no cover
f
'matches your PyTorch install.'
)
f
'matches your PyTorch install.'
)
from
.basis
import
spline_basis
# noqa
from
.basis
import
spline_basis
# noqa
from
.weighting
import
spline_weighting
# noqa
from
.conv
import
spline_conv
# noqa
from
.conv
import
spline_conv
# noqa
from
.weighting
import
spline_weighting
# noqa
__all__
=
[
__all__
=
[
'spline_basis'
,
'spline_basis'
,
...
...
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