Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
eee7cdd8
提交
eee7cdd8
authored
5月 27, 2014
作者:
Arnaud Bergeron
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Finally figured out the header problem. Now it should be what we want.
上级
a66ad5db
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
13 行增加
和
13 行删除
+13
-13
using_gpu.txt
doc/tutorial/using_gpu.txt
+13
-13
没有找到文件。
doc/tutorial/using_gpu.txt
浏览文件 @
eee7cdd8
...
...
@@ -28,7 +28,7 @@ We provide installation instructions for :ref:`Linux <gpu_linux>`,
:ref:`MacOS <gpu_macos>` and :ref:`Windows <gpu_windows>`.
Testing Theano with GPU
-----------------------
~~~~~~~~~~~~~~~~~~~~~~~
To see if your GPU is being used, cut and paste the following program into a
file and run it.
...
...
@@ -92,7 +92,7 @@ Note that GPU operations in Theano require for now ``floatX`` to be *float32* (s
Returning a Handle to Device-Allocated Data
-------------------------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The speedup is not greater in the preceding example because the function is
returning its result as a NumPy ndarray which has already been copied from the
...
...
@@ -154,7 +154,7 @@ For even more speed you can play with the ``borrow`` flag. See
:ref:`borrowfunction`.
What Can Be Accelerated on the GPU
----------------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The performance characteristics will change as we continue to optimize our
implementations, and vary from device to device, but to give a rough idea of
...
...
@@ -179,7 +179,7 @@ what to expect right now:
the device pay off.
Tips for Improving Performance on GPU
-------------------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Consider
adding ``floatX=float32`` to your ``.theanorc`` file if you plan to do a lot of
...
...
@@ -218,7 +218,7 @@ Tips for Improving Performance on GPU
.. _gpu_async:
GPU Async capabilities
----------------------
~~~~~~~~~~~~~~~~~~~~~~
Ever since Theano 0.6 we started to use the asynchronous capability of
GPUs. This allows us to be faster but with the possibility that some
...
...
@@ -236,7 +236,7 @@ as it inserts synchronization points in the graph. Set the Theano flag
usage.
Changing the Value of Shared Variables
--------------------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To change the value of a ``shared`` variable, e.g. to provide new data to processes,
use ``shared_variable.set_value(new_value)``. For a lot more detail about this,
...
...
@@ -244,7 +244,7 @@ see :ref:`aliasing`.
Exercise
========
++++++++
Consider again the logistic regression:
...
...
@@ -363,7 +363,7 @@ be referred to as GPU.
backend with minimal change.
Testing Theano with GPU
-----------------------
~~~~~~~~~~~~~~~~~~~~~~~
To see if your GPU is being used, cut and paste the following program
into a file and run it.
...
...
@@ -416,7 +416,7 @@ input *x* is stored on the GPU.
Used the gpu
Returning a Handle to Device-Allocated Data
-------------------------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
By default functions that execute on the GPU still return a standard
numpy ndarray. A transfer operation is inserted just before the
...
...
@@ -487,7 +487,7 @@ For even more speed, you can play with the ``borrow`` flag. See
:ref:`borrowfunction`.
What Can be Accelerated on the GPU
----------------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The performance characteristics will of course vary from device to
device, and also as we refine our implementation.
...
...
@@ -505,7 +505,7 @@ faster.
GPU Async Capabilities
----------------------
~~~~~~~~~~~~~~~~~~~~~~
By default, all operations on the GPU are run asynchronously. This
means that they are only scheduled to run and the function returns.
...
...
@@ -662,7 +662,7 @@ you feel competent enough, you may try yourself on the corresponding exercises.
Exercise
========
~~~~~~~~
Run the preceding example.
...
...
@@ -725,7 +725,7 @@ Use this code to test it:
Exercise
========
~~~~~~~~
Run the preceding example.
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论