Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

torch-hdf5 causes pytorch to choke #22

Closed
lebedov opened this issue Oct 27, 2016 · 3 comments
Closed

torch-hdf5 causes pytorch to choke #22

lebedov opened this issue Oct 27, 2016 · 3 comments

Comments

@lebedov
Copy link

lebedov commented Oct 27, 2016

I have torch-hdf5 installed in my torch-cl installation. Although I can successfully access the hdf5 functions in that rock from within trepl, I observe the following error when I try adding require 'hdf5' to a Lua file containing an otherwise loadable class and loading the latter with PyTorch:

PANIC: unprotected error in call to Lua API (...projects/torch-cl/install/share/lua/5.1/hdf5/ffi.lua:3: module 'bit' not found:

Oddly, I can access the support for bit operations when I'm in trepl. Any idea why the torch-hdf5 rock elicits the above error?

I'm using pytorch 65e8871 and revision c77d374 of the hughperkins/distro repo with Python 2.7.12 on MacOS 10.11.6.

@lebedov
Copy link
Author

lebedov commented Oct 27, 2016

Manually installing LuaBitOp in my torch-cl installation made the problem go away. Perhaps the problem was that trepl is run by LuaJIT (which has built-in bit operation support), whereas pytorch is using the Lua API directly and hence would not have any access to the bit support if it were not explicitly installed and made available to Lua.

@lebedov lebedov closed this as completed Oct 27, 2016
@hughperkins
Copy link
Owner

Cool! Good info :-)

@lebedov
Copy link
Author

lebedov commented Oct 27, 2016

Also asked the torch-hdf5 developers to explicitly document the bit operation support dependency :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants