Skip to content

Commit

Permalink
TST Fix test collection (#792)
Browse files Browse the repository at this point in the history
A cuda-related test was failing but since cuda is not
run by CI, it wasn't caught.
  • Loading branch information
thomasjpfan committed Jul 11, 2021
1 parent 906932c commit 359c15b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions skorch/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ def parameters():
),
(torch.as_tensor(55), torch.as_tensor(55).to('cuda')),
(
pack_padded_sequence(x, y),
pack_padded_sequence(x, y).to('cuda')
pack_padded_sequence(x, y.to('cpu')),
pack_padded_sequence(x, y.to('cpu')).to('cuda')
),
]:
yield X, expected, device
Expand Down

0 comments on commit 359c15b

Please sign in to comment.