Open InderpreetSinghChhabra01 opened 6 years ago
Same here.
Just import the following, and it should work.
require 'torch' require 'optim' require 'paths' require 'xlua' require 'csvigo' require 'nn' require 'dpnn' require 'cudnn'
You may not need all of them though.
I use the following code to convert torch method to overcome this error: convert torch 7 model and get an error : AttributeError: type object 'torch.cuda.FloatStorage' has no attribute 'from_buffer'
But soon after the first step i.e. loading the model I got the error: cPickle.UnpicklingError: invalid load key, ''.
m = torch.load('xxxx.t7') m = m:float() torch.save('xxxx.cpu.t7',m)
I have used the model of cycle gas trained in torch, I will be grateful if you can look into this, Thankyou in advance