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
19d744fd
Commit
19d744fd
authored
Mar 23, 2018
by
rusty1s
Browse files
gpu test bugfix
parent
20a6cc50
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
test/test_spline_conv.py
test/test_spline_conv.py
+1
-0
No files found.
test/test_spline_conv.py
View file @
19d744fd
...
@@ -93,6 +93,7 @@ def test_spline_conv_gpu(tensor):
...
@@ -93,6 +93,7 @@ def test_spline_conv_gpu(tensor):
assert
output
.
cpu
().
tolist
()
==
expected_output
.
tolist
()
assert
output
.
cpu
().
tolist
()
==
expected_output
.
tolist
()
@
pytest
.
mark
.
skipif
(
not
torch
.
cuda
.
is_available
(),
reason
=
'no CUDA'
)
def
test_spline_weighting_backward_gpu
():
def
test_spline_weighting_backward_gpu
():
for
degree
in
implemented_degrees
.
keys
():
for
degree
in
implemented_degrees
.
keys
():
kernel_size
=
torch
.
cuda
.
LongTensor
([
5
,
5
,
5
])
kernel_size
=
torch
.
cuda
.
LongTensor
([
5
,
5
,
5
])
...
...
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