Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
f87940d8
提交
f87940d8
authored
8月 29, 2012
作者:
Frederic
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update doc about DebugMode and ProfileMode.
上级
87aa4cf2
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
19 行增加
和
19 行删除
+19
-19
extending_faq.txt
doc/extending/extending_faq.txt
+1
-1
fibby.txt
doc/extending/fibby.txt
+1
-1
unittest.txt
doc/extending/unittest.txt
+2
-2
debugmode.txt
doc/library/compile/debugmode.txt
+5
-5
basic.txt
doc/library/tensor/basic.txt
+4
-4
shape_info.txt
doc/tutorial/shape_info.txt
+1
-1
using_gpu.txt
doc/tutorial/using_gpu.txt
+1
-1
using_gpu_solution_1.py
doc/tutorial/using_gpu_solution_1.py
+4
-4
没有找到文件。
doc/extending/extending_faq.txt
浏览文件 @
f87940d8
...
...
@@ -19,7 +19,7 @@ I wrote a new optimization, but it's not getting used...
Remember that you have to register optimizations with the :ref:`optdb`
for them to get used by the normal modes like FAST_COMPILE, FAST_RUN,
and D
EBUG_MODE
.
and D
ebugMode
.
I wrote a new optimization, and it changed my results even though I'm pretty sure it is correct.
...
...
doc/extending/fibby.txt
浏览文件 @
f87940d8
...
...
@@ -168,7 +168,7 @@ not modify any of the inputs.
TODO: EXPLAIN DESTROYMAP and VIEWMAP BETTER AND GIVE EXAMPLE.
When developing an Op, you should run computations in DebugMode, by using
argument ``mode='D
EBUG_MODE
'`` to ``theano.function``. DebugMode is
argument ``mode='D
ebugMode
'`` to ``theano.function``. DebugMode is
slow, but it can catch many common violations of the Op contract.
TODO: Like what? How? Talk about Python vs. C too.
...
...
doc/extending/unittest.txt
浏览文件 @
f87940d8
...
...
@@ -289,7 +289,7 @@ Example:
f = T.function([a,b],[c],mode='FAST_RUN')
m = theano.Module()
minstance = m.make(mode='D
EBUG_MODE
')
minstance = m.make(mode='D
ebugMode
')
Whenever possible, unit tests should omit this parameter. Leaving
out the mode will ensure that unit tests use the default mode.
...
...
@@ -306,7 +306,7 @@ type this:
THEANO_FLAGS='mode=FAST_COMPILE' nosetests
THEANO_FLAGS='mode=FAST_RUN' nosetests
THEANO_FLAGS='mode=D
EBUG_MODE
' nosetests
THEANO_FLAGS='mode=D
ebugMode
' nosetests
.. _random_value_in_tests:
...
...
doc/library/compile/debugmode.txt
浏览文件 @
f87940d8
...
...
@@ -29,7 +29,7 @@ DebugMode can be used as follows:
x = tensor.dvector('x')
f = theano.function([x], 10*x, mode='D
EBUG_MODE
')
f = theano.function([x], 10*x, mode='D
ebugMode
')
f(5)
f(0)
...
...
@@ -42,7 +42,7 @@ It can also be used by passing a DebugMode instance as the mode, as in
If any problem is detected, DebugMode will raise an exception according to
what went wrong, either at call time (``f(5)``) or compile time (
``f = theano.function(x, 10*x, mode='D
EBUG_MODE
')``). These exceptions
``f = theano.function(x, 10*x, mode='D
ebugMode
')``). These exceptions
should *not* be ignored; talk to your local Theano guru or email the
users list if you cannot make the exception go away.
...
...
@@ -51,7 +51,7 @@ In the example above, there is no way to guarantee that a future call to say,
``f(-1)`` won't cause a problem. DebugMode is not a silver bullet.
If you instantiate DebugMode using the constructor ``compile.DebugMode``
rather than the keyword ``D
EBUG_MODE
`` you can configure its behaviour via
rather than the keyword ``D
ebugMode
`` you can configure its behaviour via
constructor arguments.
Reference
...
...
@@ -133,7 +133,7 @@ Reference
The keyword version of DebugMode (which you get by using ``mode='D
EBUG_MODE
``)
The keyword version of DebugMode (which you get by using ``mode='D
ebugMode
``)
is quite strict, and can raise several different Exception types.
There following are DebugMode exceptions you might encounter:
...
...
@@ -200,7 +200,7 @@ There following are DebugMode exceptions you might encounter:
in the same order when run several times in a row. This can happen if any
steps are ordered by ``id(object)`` somehow, such as via the default object
hash function. A Stochastic optimization invalidates the pattern of work
whereby we debug in D
EBUG_MODE
and then run the full-size jobs in FAST_RUN.
whereby we debug in D
ebugMode
and then run the full-size jobs in FAST_RUN.
.. class:: InvalidValueError(DebugModeError)
...
...
doc/library/tensor/basic.txt
浏览文件 @
f87940d8
...
...
@@ -534,7 +534,7 @@ dimensions, see :meth:`_tensor_py_operators.dimshuffle`.
.. function:: shape_padright(x,
n_ones =
1)
.. function:: shape_padright(x,
n_ones=
1)
Reshape `x` by right padding the shape with `n_ones` 1s. Note that all
this new dimension will be broadcastable. To make them non-broadcastable
...
...
@@ -599,7 +599,7 @@ dimensions, see :meth:`_tensor_py_operators.dimshuffle`.
Create a matrix by filling the shape of `a` with `b`
.. function:: eye(n, m
= None, k =
0, dtype=theano.config.floatX)
.. function:: eye(n, m
=None, k=
0, dtype=theano.config.floatX)
:param n: number of rows in output (value or theano scalar)
:param m: number of columns in output (value or theano scalar)
...
...
@@ -1067,11 +1067,11 @@ Mathematical
Returns a variable representing the exponential of a, ie e^a.
.. function:: maximum(a,b)
.. function:: maximum(a,
b)
Returns a variable representing the maximum element by element of a and b
.. function:: minimum(a,b)
.. function:: minimum(a,
b)
Returns a variable representing the minimum element by element of a and b
...
...
doc/tutorial/shape_info.txt
浏览文件 @
f87940d8
...
...
@@ -102,7 +102,7 @@ You can detect those problems by running the code without this
optimization, using the Theano flag
``optimizer_excluding=local_shape_to_shape_i``. You can also obtain the
same effect by running in the modes ``FAST_COMPILE`` (it will not apply this
optimization, nor most other optimizations) or ``D
EBUG_MODE
`` (it will test
optimization, nor most other optimizations) or ``D
ebugMode
`` (it will test
before and after all optimizations (much slower)).
...
...
doc/tutorial/using_gpu.txt
浏览文件 @
f87940d8
...
...
@@ -277,7 +277,7 @@ Tips for Improving Performance on GPU
the GPU, *float32* tensor ``shared`` variables are stored on the GPU by default to
eliminate transfer time for GPU ops using those variables.
* If you aren't happy with the performance you see, try building your functions with
``mode='P
ROFILE_MODE
'``. This should print some timing information at program
``mode='P
rofileMode
'``. This should print some timing information at program
termination. Is time being used sensibly? If an op or Apply is
taking more time than its share, then if you know something about GPU
programming, have a look at how it's implemented in theano.sandbox.cuda.
...
...
doc/tutorial/using_gpu_solution_1.py
浏览文件 @
f87940d8
...
...
@@ -91,15 +91,15 @@ print predict(D[0])
# 2. Profiling
#
# same code as above but run with following command lines:
# THEANO_FLAGS=mode=P
ROFILE_MODE
,device=gpu python program_name.py
# THEANO_FLAGS=mode=P
ROFILE_MODE
,device=cpu python program_name.py
# THEANO_FLAGS=mode=P
rofileMode
,device=gpu python program_name.py
# THEANO_FLAGS=mode=P
rofileMode
,device=cpu python program_name.py
# for GPU and CPU
# 2.1 Profiling output for CPU computations
$ THEANO_FLAGS=mode=P
ROFILE_MODE
,device=cpu python program_name.py
$ THEANO_FLAGS=mode=P
rofileMode
,device=cpu python program_name.py
Used the cpu
target values for D
prediction on D
...
...
@@ -192,7 +192,7 @@ Test them first, as they are not guaranteed to always provide a speedup.
# 2.2 Profiling output for GPU computations
$ THEANO_FLAGS=mode=P
ROFILE_MODE,device=gpu python program_name.py
$ THEANO_FLAGS=mode=P
rofileMode,device=gpu python program_name.py
Using gpu device 0: GeForce GTX 580
Used the gpu
target values for D
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论