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
MMCV
Commits
51b7a6d7
Unverified
Commit
51b7a6d7
authored
Apr 14, 2022
by
VVsssssk
Committed by
GitHub
Apr 14, 2022
Browse files
[Fix] Fix spconv unit test by releasing cache on GPU (#1872)
parent
4826a9b7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
tests/test_ops/test_spconv.py
tests/test_ops/test_spconv.py
+1
-0
No files found.
tests/test_ops/test_spconv.py
View file @
51b7a6d7
...
...
@@ -76,6 +76,7 @@ def make_sparse_convmodule(in_channels,
@
pytest
.
mark
.
skipif
(
not
torch
.
cuda
.
is_available
(),
reason
=
'requires CUDA support'
)
def
test_make_sparse_convmodule
():
torch
.
cuda
.
empty_cache
()
voxel_features
=
torch
.
tensor
([[
6.56126
,
0.9648336
,
-
1.7339306
,
0.315
],
[
6.8162713
,
-
2.480431
,
-
1.3616394
,
0.36
],
[
11.643568
,
-
4.744306
,
-
1.3580885
,
0.16
],
...
...
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