Torch interface to HDF5 library