google-deepmind / torch-hdf5

Torch interface to HDF5 library
Other
237 stars 126 forks source link

Does not work when writing tables whose keys are numbers (not strings) #68

Open cBournhonesque opened 8 years ago

cBournhonesque commented 8 years ago

If you try writing a table of the form: data = {[1] = torch.Tensor(1)}

You will get an error:

torch/install/share/lua/5.1/hdf5/group.lua:101: bad argument #2 to 'H5Dcreate2' (cannot convert 'number' to 'const char *')

because the function hdf5.C.H5Dcreate2 only accepts string names.