Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
d41af74f
提交
d41af74f
authored
6月 14, 2011
作者:
Frederic Bastien
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Updated the slide exercises after the tutorial.
上级
af5457e1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
26 行增加
和
11 行删除
+26
-11
presentation.tex
doc/hpcs2011_tutorial/presentation.tex
+26
-11
没有找到文件。
doc/hpcs2011_tutorial/presentation.tex
浏览文件 @
d41af74f
...
@@ -171,10 +171,10 @@ HPCS 2011, Montr\'eal
...
@@ -171,10 +171,10 @@ HPCS 2011, Montr\'eal
\item
Real example
\item
Real example
% More info on T.grad
% More info on T.grad
% Where are the optimization in the example?
% Where are the optimization in the example?
% Exercises 2
% Exercises 2
: logreg\_example.py
\item
Theano Flags
\item
Theano Flags
\item
GPU
\item
GPU
% Exercises 3
% Exercises 3
: logreg\_example.py on the gpu
\item
Symbolic Variables
\item
Symbolic Variables
\item
Differentiation Details
\item
Differentiation Details
\item
Benchmarks
% MLP, Convolucion, Elemwise
\item
Benchmarks
% MLP, Convolucion, Elemwise
...
@@ -193,10 +193,11 @@ HPCS 2011, Montr\'eal
...
@@ -193,10 +193,11 @@ HPCS 2011, Montr\'eal
\item
Compilation Pipeline
\item
Compilation Pipeline
\item
Inplace Optimization
\item
Inplace Optimization
\item
Profiling
\item
Profiling
%exercises 4
%exercises 4
: ProfileMode on logreg\_example, CPU vs GPU
\item
Drawing/Printing Theano Graph
\item
Drawing/Printing Theano Graph
\item
Debugging
\item
Debugging
\item
Scan (For-Loop generalization)
\item
Scan (For-Loop generalization)
%exercises 5: about scan
\item
Known Limitations
\item
Known Limitations
\end{itemize}
%& \includegraphics[width=1.in]{pics/theano_logo.png}
\end{itemize}
%& \includegraphics[width=1.in]{pics/theano_logo.png}
\begin{tabular}
{
lcr
}
\begin{tabular}
{
lcr
}
...
@@ -213,7 +214,7 @@ HPCS 2011, Montr\'eal
...
@@ -213,7 +214,7 @@ HPCS 2011, Montr\'eal
\begin{itemize}
\begin{itemize}
\item
Introduction
\item
Introduction
\item
Example
\item
Example
%
PyCUDA Exercices
%
Exercices 6: pycuda_simple.py
\end{itemize}
\end{itemize}
\item
CUDA Overview
\item
CUDA Overview
\item
Extending Theano
\item
Extending Theano
...
@@ -221,8 +222,9 @@ HPCS 2011, Montr\'eal
...
@@ -221,8 +222,9 @@ HPCS 2011, Montr\'eal
\item
Theano Graph
\item
Theano Graph
\item
Op Contract
\item
Op Contract
\item
Op Example
\item
Op Example
% Exercises 7: double.py
\item
Theano + PyCUDA
\item
Theano + PyCUDA
%
Theano+PyCUDA Exercises
%
Exercises 8: pycuda_double_op.py
\end{itemize}
\end{itemize}
\item
GpuNdArray
\item
GpuNdArray
\item
Conclusion
\item
Conclusion
...
@@ -657,7 +659,7 @@ Theano can be configured with flags. They can be defined in two ways
...
@@ -657,7 +659,7 @@ Theano can be configured with flags. They can be defined in two ways
python logreg
_
example.py
python logreg
_
example.py
\end{Verbatim}
\end{Verbatim}
\vfill
\vfill
Modify and execute the example to run on CPU with floatX=float32
Modify and execute the example
in the file logreg
\_
example.py
to run on CPU with floatX=float32
* You will need to use: theano.config.floatX and ndarray.astype("str")
* You will need to use: theano.config.floatX and ndarray.astype("str")
\end{frame}
\end{frame}
...
@@ -715,7 +717,6 @@ Computers in the class
...
@@ -715,7 +717,6 @@ Computers in the class
\begin{itemize}
\begin{itemize}
\item
Modify and execute the code to run with floatX=float32 on GPU
\item
Modify and execute the code to run with floatX=float32 on GPU
\item
Run the code on the GPU
\item
Time with:
\texttt
{
time python file.py
}
\item
Time with:
\texttt
{
time python file.py
}
\end{itemize}
\end{itemize}
\end{frame}
\end{frame}
...
@@ -1167,7 +1168,8 @@ print calculate_polynomial(test_coeff, 3)
...
@@ -1167,7 +1168,8 @@ print calculate_polynomial(test_coeff, 3)
\frame
{
\frame
{
\frametitle
{
Exercises 5
}
\frametitle
{
Exercises 5
}
\begin{itemize}
\begin{itemize}
\item
Scan: modify the polynomial example to have the reduction done by scan
\item
Run the example in the file scan
\_
pow.py and scan
\_
poly.py
\item
Modify and execute the polynomial example to have the reduction done by scan
\end{itemize}
\end{itemize}
}
}
...
@@ -1335,9 +1337,9 @@ multiply_them(
...
@@ -1335,9 +1337,9 @@ multiply_them(
}
}
\begin{frame}
\begin{frame}
\frametitle
{
PyCUDA Exercises
}
\frametitle
{
Exercises 6
}
\begin{itemize}
\begin{itemize}
\item
Run the example in the file pycuda
_
simple.py
\item
Run the example in the file pycuda
\
_
simple.py
\item
Modify and execute it to work for a matrix of 20
$
\times
$
10
\item
Modify and execute it to work for a matrix of 20
$
\times
$
10
\end{itemize}
\end{itemize}
\end{frame}
\end{frame}
...
@@ -1429,6 +1431,18 @@ print out
...
@@ -1429,6 +1431,18 @@ print out
\end{Verbatim}
\end{Verbatim}
\end{frame}
\end{frame}
\begin{frame}
\frametitle
{
Exercises 7
}
\begin{itemize}
\item
Run the code in the file double
\_
op.py.
\item
Modify and execute to compute:
$
x
*
y
$
\item
Modify and execute the example to return 2 outputs:
$
x
+
y
$
and
$
x
-
y
$
\begin{itemize}
\item
Our current elemwise fusion generate computation with only 1 outputs
\end{itemize}
\end{itemize}
\end{frame}
\subsection
{
Theano+PyCUDA
}
\subsection
{
Theano+PyCUDA
}
\begin{frame}
[fragile]
\begin{frame}
[fragile]
\frametitle
{
Theano+PyCUDA Op Example
}
\frametitle
{
Theano+PyCUDA Op Example
}
...
@@ -1501,8 +1515,9 @@ print numpy.asarray(f(xv))
...
@@ -1501,8 +1515,9 @@ print numpy.asarray(f(xv))
\end{frame}
\end{frame}
\begin{frame}
\begin{frame}
\frametitle
{
Theano + PyCUDA Exercises
}
\frametitle
{
Exercises 8
}
\begin{itemize}
\begin{itemize}
\item
Run the example in the file pycuda
\_
double
\_
op.py
\item
Modify and execute the example to multiple two matrix:
$
x
*
y
$
\item
Modify and execute the example to multiple two matrix:
$
x
*
y
$
\item
Modify and execute the example to return 2 outputs:
$
x
+
y
$
and
$
x
-
y
$
\item
Modify and execute the example to return 2 outputs:
$
x
+
y
$
and
$
x
-
y
$
\begin{itemize}
\begin{itemize}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论