
torch
xmdxcsj
毕业于中科院声学所,在BAT从事语音技术研究多年。微信公众号:谈谈语音技术,关注后跟踪最新博文。
展开
-
torch学习(一) torch使用
一、安装问题1.Only CentOS 7 is supported for now, aborting.修改原来安装文件https://github.com/torch/ezinstall/blob/master/install-deps把“ if [[ $centos_major_version == '7' ]];then”判断去掉原创 2015-10-16 20:48:56 · 4916 阅读 · 4 评论 -
lua学习(一)
学习资源:官方手册:http://www.lua.org/manual/5.3/用户社区:http://lua-users.org/programming in lua中文版:http://www.centoscn.com/uploads/file/20130903/13781389409335.pdf一、lua概况可扩展性。Lua 的扩展性原创 2015-10-18 22:58:59 · 883 阅读 · 0 评论 -
torch问题及解决方案汇总(持续更新)
一、libjpeg.so库问题描述:torch/install/lib/lua/5.1/libjpeg.so: undefined symbol: jpeg_mem_src解决方案:https://github.com/torch/image/issues/41wget http://www.ijg.org/files/jpegsrc.v8d.tar.gztar -xvf jpeg原创 2015-10-20 21:04:50 · 3557 阅读 · 0 评论 -
torch学习(五) simply application
一、getting started1.torch/install/lib/lua/5.1/libjpeg.so: undefined symbol: jpeg_mem_src解决方案:https://github.com/torch/image/issues/41wget http://www.ijg.org/files/jpegsrc.v8d.tar.gztar -xvf jpe原创 2015-10-19 20:39:17 · 3652 阅读 · 0 评论 -
torch学习(四) using GPU
一、获取GPU信息require 'cutorch'print( cutorch.getDeviceProperties(cutorch.getDevice()) )二、GPU和CPU之间的数据互通1.构建GPU数据t1 = torch.CudaTensor(100):fill(0.5)t2 = torch.CudaTensor(100):fill(1)t1:原创 2015-10-20 20:57:54 · 8384 阅读 · 0 评论 -
torch学习(二) nn类结构-Module
Module|-Container |-Sequential |-Parallel |-Concat |-DepthConcat安装使用torch以后,接下来就可以开始构建模型和训练了,在这之前,一定要先花半个小时的时间了解一下torch里面nn部分使用到的基本类型,否则容易混乱。一、ModuleModule是神经网络的基本组成部分,作为一个抽原创 2015-10-21 23:36:02 · 12631 阅读 · 3 评论 -
torch学习(三) training
有两种方法进行模型训练,一种是使用封装的训练方法- StochasticGradient类 ;另外一种是使用for构建基本的训练流程 。一、StochasticGradient方法1.调用形式StochasticGradient(module, criterion)2.参数内部的成员变量,跟训练有关learningRate: This is the learning原创 2015-10-21 23:37:38 · 2423 阅读 · 0 评论 -
torch学习(六) rnn package
一、安装luarocks install mosesluarocks install fsluarocks install dpnnluarocks install rnnrnn的地址:https://github.com/Element-Research/rnnlstm:https://github.com/wojzaremba/lstm.git二、使用rnn翻译 2015-11-30 22:22:15 · 5678 阅读 · 0 评论