Closed jonathantompson closed 10 years ago
The following fails in the current master..
require 'qt' require 'qttorch' require 'qtwidget' require 'qtuiloader' qim = qtwidget.newimage(image.lena())
Because torch.typename(image.lena()) does not equal 'torch.Tensor', but whatever the default tensor type is (ie 'torch.DoubleTensor'). This is fixed now.
'torch.Tensor'
'torch.DoubleTensor'
Thanks!
The following fails in the current master..
Because torch.typename(image.lena()) does not equal
'torch.Tensor'
, but whatever the default tensor type is (ie'torch.DoubleTensor'
). This is fixed now.