Skip to content

Commit

Permalink
Remove unwanted .cuda()
Browse files Browse the repository at this point in the history
  • Loading branch information
John Reid committed Oct 1, 2021
1 parent acbce53 commit e65832e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_alignment_crf.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

def test_alignment_crf():
batch, N, M = 1, 4, 5
log_potentials = torch.rand(batch, N, M, 3).cuda()
log_potentials = torch.rand(batch, N, M, 3)

if torch.cuda.is_available():
log_potentials = log_potentials.cuda()
Expand Down

0 comments on commit e65832e

Please sign in to comment.