Skip to content

Commit

Permalink
Merge pull request #81 from lyakaap/master
Browse files Browse the repository at this point in the history
fix isinstance() validation in pytorch 0.4
  • Loading branch information
lanpa committed Feb 8, 2018
2 parents 9cbfca8 + c5189bd commit 79f1370
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorboardX/x2num.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def makenp(x, modality=None):

def pytorch_np(x, modality):
import torch
if isinstance(x, torch.autograd.variable.Variable):
if isinstance(x, torch.autograd.Variable):
x = x.data
x = x.cpu().numpy()
if modality == 'IMG':
Expand Down

0 comments on commit 79f1370

Please sign in to comment.