Skip to content

Commit

Permalink
fix test for cuda conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
lanpa committed Sep 25, 2017
1 parent 8f8d6c9 commit 709b251
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_pytorch_np.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_pytorch_np():

# CUDA variable
if torch.cuda.device_count()>0:
assert isinstance(x2num.makenp(torch.autograd.variable.Variable(tensor)).cuda(), np.ndarray)
assert isinstance(x2num.makenp(torch.autograd.variable.Variable(tensor).cuda()), np.ndarray)

# python primitive type
assert(isinstance(x2num.makenp(0), np.ndarray))
Expand Down

0 comments on commit 709b251

Please sign in to comment.