require 'nn'
require 'cunn'
require 'torch'
require 'cutorch'
require 'cudnn'
th> m =torch.load('***.t7')
then the error like this:
torch_install/torch/install**/Fiule.lua unknow torch class
anyone know why? thanks~
It is because your model uses 'nngraph' but you did not require it before loading.
thanks, @albanD it works~
@albanD @visonpon so well what is the correct way load the model?
Which parameter or settings I should change?
Thanks in advance...
UPDATE
require 'nn'
require 'cunn'
require 'torch'
require 'cutorch'
require 'cudnn'
require 'nngraph'
m = torch.load('xxxxx.t7')
has worked for me! :smile:
Most helpful comment
It is because your model uses 'nngraph' but you did not require it before loading.