Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
2734109a
提交
2734109a
authored
8月 21, 2014
作者:
Bart
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Added example of Pylearn2
上级
ff2bb325
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
63 行增加
和
18 行删除
+63
-18
presentation.tex
doc/omlw2014/presentation.tex
+63
-18
没有找到文件。
doc/omlw2014/presentation.tex
浏览文件 @
2734109a
...
@@ -42,7 +42,7 @@ Montréal, Canada \newline
...
@@ -42,7 +42,7 @@ Montréal, Canada \newline
Python <-
\{
NumPy/SciPy/libgpuarray
\}
<- Theano <- Pylearn2
Python <-
\{
NumPy/SciPy/libgpuarray
\}
<- Theano <- Pylearn2
\begin{itemize}
\begin{itemize}
\item
Python: OO coding language
\item
Python: OO coding language
\item
Numpy:
n
-dimensional array object and scientific computing toolbox
\item
Numpy:
$
n
$
-dimensional array object and scientific computing toolbox
\item
SciPy: sparse matrix objects and more scientific computing functionality
\item
SciPy: sparse matrix objects and more scientific computing functionality
\item
libgpuarray: GPU n-dimentional array object in C for CUDA and OpenCL
\item
libgpuarray: GPU n-dimentional array object in C for CUDA and OpenCL
\item
Theano: compiler/symbolic graph manipulation
\item
Theano: compiler/symbolic graph manipulation
...
@@ -81,7 +81,7 @@ Montréal, Canada \newline
...
@@ -81,7 +81,7 @@ Montréal, Canada \newline
\item
NumPy provides an
$
n
$
-dimensional numeric array in Python
\item
NumPy provides an
$
n
$
-dimensional numeric array in Python
\begin{itemize}
\begin{itemize}
\item
Perfect for high-performance computing
\item
Perfect for high-performance computing
\item
Slices of arrays are views (no copy)
\item
Slices of arrays are views (no copy
ing
)
\end{itemize}
\end{itemize}
\item
NumPy provides
\item
NumPy provides
...
@@ -121,13 +121,13 @@ Montréal, Canada \newline
...
@@ -121,13 +121,13 @@ Montréal, Canada \newline
\item
Highly parallel
\item
Highly parallel
\item
Very architecture-sensitive
\item
Very architecture-sensitive
\item
Built for maximum FP/memory throughput
\item
Built for maximum FP/memory throughput
\item
So hard to program that meta-programming is easier
.
\item
So hard to program that meta-programming is easier
\end{itemize}
\end{itemize}
\begin{bf}
Best of both:
\end{bf}
easily scripted code which invokes high-performance GPU kernels.
\begin{bf}
Best of both
worlds
:
\end{bf}
easily scripted code which invokes high-performance GPU kernels.
\begin{bf}
Theano C code generation removes overhead
\end{bf}
from
\begin{bf}
Theano C code generation removes overhead
\end{bf}
of
function call
between Python and C,
by launching many C functions at once.
function call
s between Python and C
by launching many C functions at once.
\end{frame}
\end{frame}
...
@@ -171,27 +171,26 @@ Montréal, Canada \newline
...
@@ -171,27 +171,26 @@ Montréal, Canada \newline
\begin{frame}
{
Goal of the stack
}
\begin{frame}
{
Goal of the stack
}
You can't have your cake and eat it too.
\newline
We want our cake and eat it too.
\newline
We want our cake and eat it too.???
\newline
Our target is the holy grail:
\begin{bf}
fast to develop
\end{bf}
and
\begin{bf}
fast to run
\end{bf}
.
Target the holy grail:
\begin{bf}
fast to develop
\end{bf}
and
\begin{bf}
fast to run
\end{bf}
.
\end{frame}
\end{frame}
\begin{frame}
{
libgpuarray
}
\begin{frame}
{
libgpuarray
}
G
OAL: A common GPU n dimensions array that can be reused by all projects. It support
CUDA and OpenCL.
G
oal: A common GPU
$
n
$
-dimensional array that can be reused by all projects, support for both
CUDA and OpenCL.
\newline
\newline
\newline
\newline
Motivation:
Motivation:
\begin{itemize}
\begin{itemize}
\item
Currently there are at least 6 different
gpu arrays in p
ython
\item
Currently there are at least 6 different
GPU arrays in P
ython
\begin{itemize}
\begin{itemize}
\item
CudaNdarray
(Theano), GPUArray(pycuda), CUDAMatrix(cudamat), GPUArray
(pyopencl), Clyther, Copperhead, ...
\item
CudaNdarray
(Theano), GPUArray (pycuda), CUDAMatrix (cudamat), GPUArray
(pyopencl), Clyther, Copperhead, ...
\item
There are even more if we include other languages.
\item
There are even more if we include other languages.
\end{itemize}
\end{itemize}
\item
They are incompatible
\item
They are incompatible
\begin{itemize}
\begin{itemize}
\item
None have the same properties and interface.
\item
None have the same properties and interface.
\end{itemize}
\end{itemize}
\item
All of them are a subset of numpy.ndarray on the
gpu
!
\item
All of them are a subset of numpy.ndarray on the
GPU
!
\end{itemize}
\end{itemize}
\end{frame}
\end{frame}
...
@@ -203,18 +202,18 @@ Target the holy grail: \begin{bf}fast to develop\end{bf} and \begin{bf}fast to r
...
@@ -203,18 +202,18 @@ Target the holy grail: \begin{bf}fast to develop\end{bf} and \begin{bf}fast to r
\item
Expressions mimic NumPy's syntax and semantics (easier to use)
\item
Expressions mimic NumPy's syntax and semantics (easier to use)
\item
Dynamic C/CUDA code generation
\item
Dynamic C/CUDA code generation
\begin{itemize}
\begin{itemize}
\item
Is used with other technologie
to generate fast code: C/C++, CUDA, OpenCL, PyCUDA, Cython, Numba,
\ldots
\item
Can use other technologies
to generate fast code: C/C++, CUDA, OpenCL, PyCUDA, Cython, Numba,
\ldots
\end{itemize}
\end{itemize}
\item
Efficient symbolic differeniation
\item
Efficient symbolic differeniation
\begin{itemize}
\begin{itemize}
\item
Theano computes derivatives of functions with one or many inputs.
\item
Theano computes derivatives of functions with one or many inputs.
\item
Also support computation of the Jacobian, Hessian, R and L op.
\item
Also support
s
computation of the Jacobian, Hessian, R and L op.
\end{itemize}
\end{itemize}
\item
Speed and stability optimizations
\item
Speed and stability optimizations
\begin{itemize}
\begin{itemize}
\item
Gives the right answer for ``
log(1+x)'' even if x
is really tiny.
\item
Gives the right answer for ``
$
\log
(
1
+
x
)
$
'' even if
$
x
$
is really tiny.
\end{itemize}
\end{itemize}
\item
Works on Linux,
Mac
and Windows
\item
Works on Linux,
OS X
and Windows
\item
Transparent use of a GPU
\item
Transparent use of a GPU
\begin{itemize}
\begin{itemize}
\item
{
\tt
float32
}
only for now (working on other data types)
\item
{
\tt
float32
}
only for now (working on other data types)
...
@@ -303,11 +302,12 @@ print f([0, 1, 2])
...
@@ -303,11 +302,12 @@ print f([0, 1, 2])
\item
Allows for automatic conversion e.g. labels to one-hot vectors, images to flattened vectors
\item
Allows for automatic conversion e.g. labels to one-hot vectors, images to flattened vectors
\end{itemize}
\end{itemize}
\end{frame}
\end{frame}
\begin{frame}
{
Project status
}
\begin{frame}
{
Project status
}
\begin{itemize}
\begin{itemize}
\item
Has been used for scientific publications, Kaggle competitions, used by many researchers at LISA
\item
Has been used for scientific publications, Kaggle competitions, used by many researchers at LISA
\item
Still under rapid development, however the API shouldn't break without warning
\item
Still under rapid development, however the API shouldn't break without warning
\item
Documentation is incomplete, but improving
\item
Documentation is incomplete, but
quickly
improving
\item
Features currently in development:
\item
Features currently in development:
\begin{itemize}
\begin{itemize}
\item
Recurrent neural networks (RNNs), based on the GroundHog framework developed at LISA
\item
Recurrent neural networks (RNNs), based on the GroundHog framework developed at LISA
...
@@ -316,6 +316,51 @@ print f([0, 1, 2])
...
@@ -316,6 +316,51 @@ print f([0, 1, 2])
\end{itemize}
\end{itemize}
\end{frame}
\end{frame}
\begin{frame}
[fragile]
\frametitle
{
Simple example
}
\lstset
{
language=yaml,
commentstyle=
\itshape\color
{
blue
}
}
\begin{lstlisting}
!obj:pylearn2.train.Train
{
"dataset": !obj:pylearn2.datasets.dense
_
design
_
matrix.DenseDesignMatrix
&
dataset
{
"X" : !obj:numpy.random.normal
{
'size': [5,3]
}
,
}
,
"model": !obj:pylearn2.models.autoencoder.DenoisingAutoencoder
{
"nvis" : 3,
"nhid" : 4,
"irange" : 0.05, # Interval from which to sample weights
"corruptor": !obj:pylearn2.corruption.BinomialCorruptor
{
"corruption
_
level": 0.5,
}
,
"act
_
enc": "tanh",
"act
_
dec": null, # Linear activation on the decoder side.
}
,
"algorithm": !obj:pylearn2.training
_
algorithms.sgd.SGD
{
"learning
_
rate" : 1e-3,
"batch
_
size" : 5,
"monitoring
_
dataset" : *dataset,
"cost" : !obj:pylearn2.costs.autoencoder.MeanSquaredReconstructionError
{}
,
"termination
_
criterion" : !obj:pylearn2.termination
_
criteria.EpochCounter
{
"max
_
epochs": 10,
}
,
}
}
\end{lstlisting}
\end{frame}
\begin{frame}
[fragile]
\frametitle
{
Simple example
}
\lstset
{
language=python,
commentstyle=
\itshape\color
{
blue
}
}
\begin{lstlisting}
# Example of using a single part of Pylearn2 to show its modularity
\end{lstlisting}
\end{frame}
\section
{
libgpuarray
}
\section
{
libgpuarray
}
\begin{frame}
{
libgpuarray: Design Goals
}
\begin{frame}
{
libgpuarray: Design Goals
}
\begin{itemize}
\begin{itemize}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论