Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
c9bb9b81
提交
c9bb9b81
authored
5月 16, 2016
作者:
slefrancois
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add new backend flags to config, set doc version to 0.9 dev
上级
3e3ba8f8
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
21 行增加
和
25 行删除
+21
-25
conf.py
doc/conf.py
+2
-2
config.txt
doc/library/config.txt
+16
-19
configdefaults.py
theano/configdefaults.py
+3
-4
没有找到文件。
doc/conf.py
浏览文件 @
c9bb9b81
...
...
@@ -60,9 +60,9 @@ copyright = '2008--2016, LISA lab'
# other places throughout the built documents.
#
# The short X.Y version.
version
=
'0.
8
'
version
=
'0.
9
'
# The full version, including alpha/beta/rc tags.
release
=
'0.
8.0
'
release
=
'0.
9 dev
'
# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
...
...
doc/library/config.txt
浏览文件 @
c9bb9b81
...
...
@@ -51,11 +51,11 @@ Environment Variables
.. code-block:: bash
THEANO_FLAGS='floatX=float32,device=
gpu
0,lib.cnmem=1' python <myscript>.py
THEANO_FLAGS='floatX=float32,device=
cuda
0,lib.cnmem=1' python <myscript>.py
If a value is defined several times in ``THEANO_FLAGS``,
the right-most definition is used. So, for instance, if
``THEANO_FLAGS='device=cpu,device=
gpu0'``, then gpu
0 will be used.
``THEANO_FLAGS='device=cpu,device=
cuda0'``, then cuda
0 will be used.
.. envvar:: THEANORC
...
...
@@ -70,7 +70,7 @@ Environment Variables
[global]
floatX = float32
device =
gpu
0
device =
cuda
0
[lib]
cnmem = 1
...
...
@@ -102,22 +102,18 @@ import theano and print the config variable, as in:
.. attribute:: device
String value: either ``'cpu'``, ``'
gpu'``, ``'gpu0'``, ``'gpu
1'``,
``'
gpu2'``, or ``'gpu3'``
String value: either ``'cpu'``, ``'
cuda'``, ``'cuda0'``, ``'cuda
1'``,
``'
opencl0'``, or ``'opencl1'`` ...
Default device for computations. If ``gpu*``, change the default to try
to move computation to it and to put shared variable of float32 on
it.
Choose the default compute device for theano graphs. Setting this to a
``gpu*`` string will make theano to try by default to move computation to it.
Also it will make theano put by default shared variable of float32 on it.
``'gpu'`` lets the driver select the GPU to use, while ``'gpu?'`` makes Theano try
to use a specific device. If we are not able to use the GPU, either we fall back
on the CPU, or an error is raised, depending on the :attr:`force_device` flag.
Default device for computations. If ``'cuda*``, change the default to try
to move computation to the GPU using CUDA libraries. If ``'opencl*'``,
the openCL libraries will be used. To let the driver select the device,
use ``'cuda'`` or ``'opencl'``. If we are not able to use the GPU,
either we fall back on the CPU, or an error is raised, depending on the :attr:`force_device` flag.
This flag's value cannot be modified during the program execution.
Do not use upper case letters, only lower case even if NVIDIA use
Do not use upper case letters, only lower case even if NVIDIA use
s
capital letters.
.. attribute:: force_device
...
...
@@ -138,11 +134,12 @@ import theano and print the config variable, as in:
.. attribute:: init_gpu_device
String value: either ``''``, ``'
gpu'``, ``'gpu0'``, ``'gpu1'``, ``'gpu2
'``,
or ``'gpu3'``
String value: either ``''``, ``'
cuda'``, ``'cuda0'``, ``'cuda1
'``,
``'opencl0'``, or ``'opencl1'`` ...
Initialize the gpu device to use.
When its value is gpu*, the theano flag :attr:`device` must be ``"cpu"``.
When its value is cuda* or opencl*, the theano flag :attr:`device` must
be ``"cpu"``.
Unlike :attr:`device`, setting this flag to a specific GPU will not
try to use this device by default, in particular it will **not** move
computations, nor shared variables, to the specified GPU.
...
...
theano/configdefaults.py
浏览文件 @
c9bb9b81
...
...
@@ -104,10 +104,9 @@ class DeviceParam(ConfigParam):
AddConfigVar
(
'device'
,
(
"Default device for computations. If gpu*, change the default to try "
"to move computation to it and to put shared variable of float32 "
"on it. Do not use upper case letters, only lower case even if "
"NVIDIA use capital letters."
),
(
"Default device for computations. If cuda* or opencl*, change the
"
default
to
try
to
move
computation
to
the
GPU
.
Do
not
use
upper
case
"
"
letters
,
only
lower
case
even
if
NVIDIA
uses
capital
letters
.
"),
DeviceParam('cpu', allow_override=False),
in_c_key=False)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论