google-deepmind / google-deepmind/torch-hdf5

Cannot run torch train command – NYI stack traceback

Open
#104 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Lua
Stars
241
Forks
125
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the command from the report and trace the failure through util/DataLoader.lua:17 and train.lua:76. Compare the call path with hdf5/group.lua:88, then determine whether the NYI error is caused by the Torch/HDF5 installation; done means the training command loads the HDF5 data without this traceback.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
data
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
18/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.