torch / torch7

http://torch.ch
Other
9k stars 2.38k forks source link

Cannot run torch train command #1182

Open matthewclark4 opened 6 years ago

matthewclark4 commented 6 years ago

Hello, have been following the torch rnn mac install tutorial found here: http://www.jeffreythompson.org/blog/2016/03/25/torch-rnn-mac-install/

I am running the following command for step 7. (using -gpu -1 flag because CUDA isnt working)

th train.lua -input_h5 data/tiny_shakespeare.h5 -input_json data/tiny_shakespeare.json -gpu -1

however it spits out this:

/Users/matthewclark/torch/install/bin/lua: .../matthewclark/torch/install/share/lua/5.2/hdf5/group.lua:88: NYI
stack traceback:
[C]: in function '__concat'
.../matthewclark/torch/install/share/lua/5.2/hdf5/group.lua:88: in function <.../matthewclark/torch/install/share/lua/5.2/hdf5/group.lua:87>
[C]: in function 'tostring'
.../matthewclark/torch/install/share/lua/5.2/hdf5/group.lua:39: in function '__init'
.../matthewclark/torch/install/share/lua/5.2/torch/init.lua:91: in function <.../matthewclark/torch/install/share/lua/5.2/torch/init.lua:87>
[C]: in function 'HDF5Group'
...s/matthewclark/torch/install/share/lua/5.2/hdf5/init.lua:74: in function '_loadObject'
...s/matthewclark/torch/install/share/lua/5.2/hdf5/file.lua:19: in function '__init'
.../matthewclark/torch/install/share/lua/5.2/torch/init.lua:91: in function <.../matthewclark/torch/install/share/lua/5.2/torch/init.lua:87>
[C]: in function 'HDF5File'
...s/matthewclark/torch/install/share/lua/5.2/hdf5/file.lua:148: in function <...s/matthewclark/torch/install/share/lua/5.2/hdf5/file.lua:145>
(...tail calls...)
./util/DataLoader.lua:17: in function '__init'
.../matthewclark/torch/install/share/lua/5.2/torch/init.lua:91: in function <.../matthewclark/torch/install/share/lua/5.2/torch/init.lua:87>
[C]: in function 'DataLoader'
train.lua:76: in main chunk
[C]: in function 'dofile'
...lark/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: in ?

Any help would be much appreciated, am pretty stuck here