1、安装torch,最终结果是能使用th命令。
官网:http://torch.ch/docs/getting-started.html
2、linux安装hdf5,为系统安装hdf5
参考链接:https://jingyan.baidu.com/article/cbcede077e1ebe02f40b4d1e.html
官方下载链接:https://support.hdfgroup.org/HDF5/release/obtainsrc518.html
3、安装lua
http://www.runoob.com/lua/lua-environment.html
4、安装torch-hdf5。
https://blog.csdn.net/lsh894609937/article/details/70477311
参考内容:
sudo apt-get install libhdf5-serial-dev hdf5-tools
git clone https://github.com/deepmind/torch-hdf5
cd torch-hdf5
luarocks make hdf5-0-0.rockspec LIBHDF5_LIBDIR=”/usr/lib/x86_64-linux-gnu/”
完!