Skip to content

Commit

Permalink
[Fix] Fix spconv unit test by releasing cache on GPU (#1872)
Browse files Browse the repository at this point in the history
  • Loading branch information
VVsssssk authored Apr 14, 2022
1 parent 4826a9b commit 51b7a6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_ops/test_spconv.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 51b7a6d

Please sign in to comment.