Sunday, August 28, 2016

Torch-hdf5

Don't use luarocks install hdf5. It might install a different library. What you want is:
https://github.com/deepmind/torch-hdf5/blob/master/doc/usage.md

To install it, clone the repository and type:
luarocks make hdf5-0-0.rockspec
Test installation with:
th -e "require 'hdf5'"

If it works, you're set. If it throws up errors like  "Error: unable to locate HDF5 header file at hdf5.h",
then you need to go to $TORCHPATH/share/lua/5.1/hdf5/config.lua and edit HDF5_INCLUDE_PATH. For e.g.
    HDF5_INCLUDE_PATH = "/vision/vision_users/dineshj/local_installs/include/",

No comments:

Post a Comment