I use ” th translate.lua -model model1.t7 -src test.txt -output pred.txt -gpuid 1 “ to translate test.txt,but when loading the model I have met the error:
[01/05/18 15:38:35 INFO] Loading ‘model1.t7’…
/home/zyyt/torch/install/bin/luajit: /home/zyyt/torch/install/share/lua/5.1/torch/File.lu
a:351: read error: read 42048226 blocks instead of 85648592 at /home/zyyt/torch/pkg/torch/lib/TH/THDiskFile.c:356stack traceback:
[C]: in function ‘read’
/home/zyyt/torch/install/share/lua/5.1/torch/File.lua:351: in function </home/zyy
t/torch/install/share/lua/5.1/torch/File.lua:245> [C]: in function ‘read’
/home/zyyt/torch/install/share/lua/5.1/torch/File.lua:351: in function ‘readObjec
t’ /home/zyyt/torch/install/share/lua/5.1/torch/File.lua:369: in function ‘readObjec
t’ /home/zyyt/torch/install/share/lua/5.1/nn/Module.lua:192: in function ‘read’
/home/zyyt/torch/install/share/lua/5.1/torch/File.lua:351: in function ‘readObjec
t’ /home/zyyt/torch/install/share/lua/5.1/torch/File.lua:369: in function ‘readObjec
t’ /home/zyyt/torch/install/share/lua/5.1/torch/File.lua:369: in function ‘readObjec
t’ /home/zyyt/torch/install/share/lua/5.1/torch/File.lua:353: in function ‘readObjec
t’ /home/zyyt/torch/install/share/lua/5.1/torch/File.lua:368: in function ‘readObjec
t’ …
/home/zyyt/torch/install/share/lua/5.1/torch/File.lua:369: in function ‘readObjec
t’ /home/zyyt/torch/install/share/lua/5.1/torch/File.lua:369: in function ‘readObjec
t’ /home/zyyt/torch/install/share/lua/5.1/torch/File.lua:409: in function ‘load’
./onmt/translate/Translator.lua:141: in function ‘__init’
/home/zyyt/torch/install/share/lua/5.1/torch/init.lua:91: in function 'new’
translate.lua:93: in function 'main’
translate.lua:334: in main chunk
[C]: in function ‘dofile’
…zyyt/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00405d50
zyyt@zyyt:~/openNMTJZmodel/OpenNMT$
How to solve this error?
thanks very much!