Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
b7c20360
提交
b7c20360
authored
1月 16, 2015
作者:
Frederic Bastien
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Move simple example slide and merge another one.
上级
dda5846d
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
32 行增加
和
63 行删除
+32
-63
presentation.tex
doc/nextml2015/presentation.tex
+32
-63
没有找到文件。
doc/nextml2015/presentation.tex
浏览文件 @
b7c20360
...
@@ -207,6 +207,37 @@ We use the IMDB dataset.
...
@@ -207,6 +207,37 @@ We use the IMDB dataset.
Deep Learning Tutorials:
\url
{
deeplearning.net/tutorial/
}
Deep Learning Tutorials:
\url
{
deeplearning.net/tutorial/
}
\end{frame}
\end{frame}
\begin{frame}
[fragile]
\frametitle
{
Simple example
}
\lstset
{
language=Python,
commentstyle=
\itshape\color
{
blue
}
,
stringstyle=
\color
{
violet
}
,
}
\begin{lstlisting}
import theano
# declare symbolic variable
a = theano.tensor.vector("a")
# build symbolic expression
b = a + a ** 10
# compile function
f = theano.function([a], b)
# Execute with numerical value
print f([0, 1, 2])
# prints `array([0, 2, 1026])`
\end{lstlisting}
\end{frame}
\begin{frame}
{
Simple example
}
\center
\includegraphics
[width=0.35\textwidth]
{
../hpcs2011
_
tutorial/pics/f
_
unoptimized.png
}
\hspace
{
0.1
\textwidth
}
\includegraphics
[width=0.35\textwidth]
{
../hpcs2011
_
tutorial/pics/f
_
optimized.png
}
\end{frame}
%% \begin{frame}{Overview of Library}
%% \begin{frame}{Overview of Library}
%% Theano is many things
%% Theano is many things
...
@@ -231,40 +262,9 @@ We use the IMDB dataset.
...
@@ -231,40 +262,9 @@ We use the IMDB dataset.
\end{frame}
\end{frame}
\begin{frame}
[fragile]
\frametitle
{
Overview
}
Using Theano:
\begin{itemize}
\item
define expression
$
f
(
x,y
)
=
x
+
y
$
\item
compile expression
\lstset
{
language=Python,
commentstyle=
\itshape\color
{
blue
}
,
stringstyle=
\color
{
violet
}
,
}
\begin{lstlisting}
int f(int x, int y)
{
return x + y;
}
\end{lstlisting}
\item
execute expression
\lstset
{
language=Python,
commentstyle=
\itshape\color
{
blue
}
,
stringstyle=
\color
{
violet
}
,
}
\begin{lstlisting}
>>> f(1, 2)
3
\end{lstlisting}
\end{itemize}
\end{frame}
\begin{frame}
[fragile]
\begin{frame}
[fragile]
\frametitle
{
Scalar math
}
\frametitle
{
Scalar math
}
Using Theano:
Some example of scalar operations:
\begin{itemize}
\item
define SYMBOLIC expression
$
f
(
x,y
)
=
x
+
y
$
\end{itemize}
\lstset
{
language=Python,
\lstset
{
language=Python,
commentstyle=
\itshape\color
{
blue
}
,
commentstyle=
\itshape\color
{
blue
}
,
stringstyle=
\color
{
violet
}
,
stringstyle=
\color
{
violet
}
,
...
@@ -829,37 +829,6 @@ Elemwise{mul,no_inplace} [@A] ''
...
@@ -829,37 +829,6 @@ Elemwise{mul,no_inplace} [@A] ''
%% \end{itemize}
%% \end{itemize}
%% \end{frame}
%% \end{frame}
% The following does not work with lstset, for some reason
%\begin{frame}{Simple example}
\begin{frame}
[fragile]
\frametitle
{
Simple example
}
\lstset
{
language=Python,
commentstyle=
\itshape\color
{
blue
}
,
stringstyle=
\color
{
violet
}
,
}
\begin{lstlisting}
import theano
# declare symbolic variable
a = theano.tensor.vector("a")
# build symbolic expression
b = a + a ** 10
# compile function
f = theano.function([a], b)
print f([0, 1, 2])
# prints `array([0, 2, 1026])`
\end{lstlisting}
\end{frame}
\begin{frame}
{
Simple example: graph optimization
}
\center
\includegraphics
[width=0.35\textwidth]
{
../hpcs2011
_
tutorial/pics/f
_
unoptimized.png
}
\hspace
{
0.1
\textwidth
}
\includegraphics
[width=0.35\textwidth]
{
../hpcs2011
_
tutorial/pics/f
_
optimized.png
}
%Symbolic programming = *Paradigm shift*: people need to use it to understand it.
\end{frame}
\subsection
{
Scan
}
\subsection
{
Scan
}
\begin{frame}
\begin{frame}
\frametitle
{
Scan
}
\frametitle
{
Scan
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论