torch / torch7

http://torch.ch
Other
8.97k stars 2.38k forks source link

Error in function 'read' #1105

Open JoeyQWu opened 6 years ago

JoeyQWu commented 6 years ago

When I ran the lua file ,I met a error like this :

/home/wxq/torch/install/bin/luajit: /home/wxq/torch/install/share/lua/5.1/torch/File.lua:351: read error: read 1843830 blocks instead of 2359296 at /home/wxq/torch/pkg/torch/lib/TH/THDiskFile.c:364 stack traceback: [C]: in function 'read' /home/wxq/torch/install/share/lua/5.1/torch/File.lua:351: in function </home/wxq/torch/install/share/lua/5.1/torch/File.lua:245> [C]: in function 'read' /home/wxq/torch/install/share/lua/5.1/torch/File.lua:351: in function 'readObject' /home/wxq/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject' /home/wxq/torch/install/share/lua/5.1/nn/Module.lua:192: in function 'read' /home/wxq/torch/install/share/lua/5.1/torch/File.lua:351: in function 'readObject' /home/wxq/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject' /home/wxq/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject' /home/wxq/torch/install/share/lua/5.1/nn/Module.lua:192: in function 'read' /home/wxq/torch/install/share/lua/5.1/torch/File.lua:351: in function 'readObject' /home/wxq/torch/install/share/lua/5.1/torch/File.lua:409: in function 'load' test.lua:51: in main chunk [C]: in function 'dofile' .../wxq/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk [C]: at 0x00405d50

How should I solve them ? Please help me! Thanks!

Naruto-Sasuke commented 6 years ago

maybe your model is broken.

JoeyQWu commented 6 years ago

OK, Thanks for your help! @Naruto-Sasuke