【问题标题】:Error using Torch RNN使用 Torch RNN 时出错
【发布时间】:2023-04-09 06:04:01
【问题描述】:

我正在按照 github.com/jcjohnson/torch-rnn 上的说明进行操作,直到培训部分。当我使用th train.lua -input_h5 my_data.h5 -input_json my_data.json我得到错误Error: unable to locate HDF5 header file at /usr/local/Cellar/hdf5/1.10.0-patch1/include;/usr/include;/usr/local/opt/szip/include/hdf5.h 我是 luarocks 和 torch 的新手,所以我不确定出了什么问题。我安装了torch-hd5f。任何建议将不胜感激。

【问题讨论】:

标签: python-2.7 lua torch luarocks


【解决方案1】:

检查头文件是否存在以及路径是否正确。

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

【讨论】:

    猜你喜欢
    • 2018-04-02
    • 1970-01-01
    • 2016-07-31
    • 1970-01-01
    • 2018-04-14
    • 1970-01-01
    • 2022-01-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多