![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Torch
文章平均质量分 94
lenry_zi
student
展开
-
Torch学习各类资源总结
Torch官网文档Torchtorchtorch——math函数(中文)nnnn模块学习optim优化方法总结实用程序Timer本类能够测量特定时间段内的时间(以秒为单位)。 例:timer = torch.Timer() -- the Timer starts to count now x = 0 for i=1,1000000 do x = x + math.sin(x) e...原创 2018-04-19 19:52:11 · 344 阅读 · 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-ffi mattorch 安装 法一 sudo luarocks install mattorch 错误 Installing https://raw.githubusercontent...原创 2018-11-07 17:12:58 · 1227 阅读 · 2 评论 -
torch7
元素读取 th> a= torch.rand(2,3) th>a 0.9646 0.2998 0.8082 0.4970 0.5252 0.2022 [torch.DoubleTensor of size 2x3] th> a[1] --[] 0.9646 0.2998 0.8082 [torch.DoubleTensor of size 3]原创 2018-11-08 16:18:22 · 224 阅读 · 0 评论