- 博客(5)
- 资源 (1)
- 收藏
- 关注
原创 Torch 在OSX 10.11.6 下的安装
参考官方文档:# in a terminal, run the commands WITHOUT sudo git clone https://github.com/torch/distro.git ~/torch –recursive cd ~/torch; bash install-deps; ./install.shThe first script installs the
2016-09-21 08:17:39 1192
原创 torch学习笔记(二) nn类结构-Linear
Linear 是module的子类,是参数化module的一种,与其名称一样,表示着一种线性变换。创建 parent 的init函数 Linear的创建需要两个参数,inputSize 和 outputSize inputSize:输入节点数 outputSize:输出节点数 所以Linear 有7个字段:weight : Tensor , outputSize ×\times i
2016-09-26 17:24:50 43447
原创 torch学习笔记(一) nn类结构-Module
网络的每一个模块都是由Modules组成的,可以使用一些 Module 的子类。容器类包括Sequential,Parallel和Concat,这些容器可以包含simple layers,比如Linear,Mean,Max和Reshape,或者是convolution layers以及transfer layers比如Tanh。 Loss functions 是作为Criterion子类实现的,
2016-09-24 17:37:29 2189
原创 oxford-cs-ml-2015/practical6 代码解读(LSTMs for language modelling)
查看具体项目文件请点击这里1. train.luarequire(modelname)require 用于加载不同的模块,torch、nn、nngraph、optim都为框架本身的模块,而’data.CharLMMinibatchLoader’、’LSTM’ 、’Embedding’、’model_utils’则为自定义模块。 其中data.表示在data目录下的CharLMMinibatchLo
2016-09-23 21:04:44 643
原创 Octave 运算2
sigmoid function% Instructions: Compute the sigmoid of each value of z (z can be a matrix,% vector or scalar).function g = sigmoid(z)g = zeros(size(z));g = 1./(ones(size(z))+exp(-z));
2016-09-02 21:21:47 1268
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人