Skip to content

Commit

Permalink
add test comment
Browse files Browse the repository at this point in the history
  • Loading branch information
awaelchli committed Aug 11, 2020
1 parent 4b29ea7 commit 17d3700
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/models/test_gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ def to(self, *args, **kwargs):

@pytest.mark.skipif(not torch.cuda.is_available(), reason="test requires GPU machine")
def test_non_blocking():
""" Tests that non_blocking=True only gets passed on torch.Tensor.to, but not on other objects. """
trainer = Trainer()

batch = torch.zeros(2, 3)
Expand Down

0 comments on commit 17d3700

Please sign in to comment.