You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created my hdf5 file by python with embed_info.create_dataset('vocab',(count,),dtype='S10',data=vocab)
When I open that file using torch, it goes wrong.
Here is the error log: torch/install/share/lua/5.1/hdf5/ffi.lua:335: Reading data of class STRING(50331965) is unsupported
stack traceback:
[C]: in function 'error'
/home/lyb/torch/install/share/lua/5.1/hdf5/ffi.lua:335: in function '_getTorchType'
/home/lyb/torch/install/share/lua/5.1/hdf5/dataset.lua:88: in function 'getTensorFactory'
/home/lyb/torch/install/share/lua/5.1/hdf5/dataset.lua:138: in function 'partial'
[string "a= file:read('/embed_info/vocab'):partial({1,2})"]:1: in main chunk
[C]: in function 'xpcall'
/home/lyb/torch/install/share/lua/5.1/trepl/init.lua:669: in function 'repl'
.../lyb/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:199: in main chunk
[C]: at 0x00406670
Anyone has met such a question?
The text was updated successfully, but these errors were encountered:
I created my hdf5 file by python with
embed_info.create_dataset('vocab',(count,),dtype='S10',data=vocab)
When I open that file using torch, it goes wrong.
Here is the error log:
torch/install/share/lua/5.1/hdf5/ffi.lua:335: Reading data of class STRING(50331965) is unsupported
stack traceback:
[C]: in function 'error'
/home/lyb/torch/install/share/lua/5.1/hdf5/ffi.lua:335: in function '_getTorchType'
/home/lyb/torch/install/share/lua/5.1/hdf5/dataset.lua:88: in function 'getTensorFactory'
/home/lyb/torch/install/share/lua/5.1/hdf5/dataset.lua:138: in function 'partial'
[string "a= file:read('/embed_info/vocab'):partial({1,2})"]:1: in main chunk
[C]: in function 'xpcall'
/home/lyb/torch/install/share/lua/5.1/trepl/init.lua:669: in function 'repl'
.../lyb/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:199: in main chunk
[C]: at 0x00406670
Anyone has met such a question?
The text was updated successfully, but these errors were encountered: