utils.py lines 29, 98: torch.autograd.variable is now a function, so setting the type fails. Changed to use isinstance(x, torch.autograd.Variable) as a fix.
utils.py lines 99, 101: d_error.data.cpu().numpy()[0] throws an index error, printing shows it's not an array at all. removed index as a fix