![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LUA
文章平均质量分 75
lenry_zi
student
展开
-
Lua开源库 lfs的使用
- lfs.attributes (filepath [, aname]) 返回这个path的属性table,如果filepath是nil则会出错并打印错误信息,属性列表如下所示: mode属性是字符串,其他属性都是数组。属性描述dev不常用不翻译了:on Unix systems, this represents the device that the inode resides on. On ...原创 2018-05-04 19:52:55 · 1679 阅读 · 0 评论 -
Lua + Torch 踩坑小结
1.Tensor中选择元素时索引必须用number类型VS,tensor与table转换index53[torch.FloatTensor of size 2]p0.5162 0.4855 0.5177 0.5186 0.50070.4797 0.4709 0.4959 0.4905 0.4959[torch.FloatTensor of size 2x5]想要根据tensor...原创 2018-05-21 16:47:28 · 2343 阅读 · 0 评论 -
matio/mattorch
matlab生成的数据是mat格式的,需要转换成torch使用的t7格式。可以使用mattorch实现,但我在OS X 系统中总是安装出错。matio也可以实现matlab数据和torch数据的转换,matio-ffimattorch 安装法一sudo luarocks install mattorch错误Installing https://raw.githubusercontent...原创 2018-11-07 17:12:58 · 1226 阅读 · 2 评论