Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Binary file incompatibility? #3

Closed
kaz7 opened this issue Nov 11, 2016 · 2 comments
Closed

Binary file incompatibility? #3

kaz7 opened this issue Nov 11, 2016 · 2 comments

Comments

@kaz7
Copy link

kaz7 commented Nov 11, 2016

Hi, thank you for great work. It runs faster than original torch on Xeon.

However, I'm having one trouble while trying to load trained .t7 files. These .t7 files are trained on GPGPU torch but converted for CPU. Original torch on CPU (without GPGPU) works well with these .t7 files. However, Intel torch shows following error message.

$ th ...
| loading model file...
/home/.../torch/inteltorch/install/bin/lua: .../torch/inteltorch/install/share/lua/5.2/torch/
File.lua:301: Failed to load function from bytecode: binary string: not a precompiled chunk
stack traceback:
        [C]: in function 'error'
        .../torch/inteltorch/install/share/lua/5.2/torch/File.lua:301: in function 'readObject'
        .../torch/inteltorch/install/share/lua/5.2/torch/File.lua:369: in function 'readObject'

Any idea? Thanks.

@xhzhao
Copy link
Contributor

xhzhao commented Nov 16, 2016

hi kmarukawa
Thanks for your feedback. When runing imagenet classification, we could load the snapshot files(.t7 files) without any error.
From your log ,the luajit version you installed is 5.2. Could you please install luajit2.1(the default version) and try again?

xhzhao

@kaz7
Copy link
Author

kaz7 commented Nov 16, 2016

Hi xhzhao,
Thank you for the suggestion. You are right. I unfortunately compiled it with lua 5.2 while I was trying to port GPGPU program into this Intel Torch. I recompiled Intel torch from scratch again. It works fine. Thanks.

kazushi

@kaz7 kaz7 closed this as completed Nov 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants