使用Torch RNN出现错误

我正在遵循github.com/jcjohnson/torch-rnn的指示,并在训练部分之前运行它。当我使用'th train.lua-input_h5 my_data.h5-input_json my_data.json'时,我收到错误错误:无法在/usr/local/Cellar/hdf5/1.10.0-patch1/include;/usr/include;/usr/local/opt/szip/include/hdf5.h中找到HDF5头文件 我是luarocks和torch的新手,所以我不确定哪里出了问题。我安装了torch-hd5f。如果您有任何建议,将不胜感激。

点赞
用户8057390
用户8057390

检查头文件是否存在,并确保路径正确。

如果头文件丢失,则可能没有完成预处理步骤。如果头文件存在,则可能在您的数据目录中而不是与sample.lua代码相同的目录中: th train.lua -input_h5 data/ my_data.h5 -input_json data/ my_data.json

2017-05-24 05:40:10