Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
0530d657
提交
0530d657
authored
7月 16, 2010
作者:
Frederic Bastien
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
small fix to the doc.
上级
ea371710
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
6 行增加
和
7 行删除
+6
-7
optimizations.txt
doc/optimizations.txt
+3
-3
examples.txt
doc/tutorial/examples.txt
+2
-3
modes.txt
doc/tutorial/modes.txt
+1
-1
没有找到文件。
doc/optimizations.txt
浏览文件 @
0530d657
...
...
@@ -5,9 +5,9 @@ Optimizations
==============
Theano applies many kinds of graph optimizations, with different objectives:
* simplifying and standardizing the form of the expression graph (e.g. :term:`merge`, :term:`add canonicalization` ),
* reducing the maximum memory footprint (e.g. :term:`inplace_elemwise`),
* increasing execution speed (e.g. :term:`constant folding`).
* simplifying and standardizing the form of the expression graph (e.g. :term:`merge`, :term:`add canonicalization` ),
* reducing the maximum memory footprint (e.g. :term:`inplace_elemwise`),
* increasing execution speed (e.g. :term:`constant folding`).
The optimizations are listed in roughly chronological order. The table below
gives a quick summary of the optimizations included in the default modes.
...
...
doc/tutorial/examples.txt
浏览文件 @
0530d657
...
...
@@ -212,8 +212,7 @@ Using shared variables
It is also possible to make a function with an internal state. For
example, let's say we want to make an accumulator: at the beginning,
the state is initialized to zero. Then, on each function call, the state
is incremented by the function's argument. We'll also make it so that
the increment has a default value of 1.
is incremented by the function's argument.
First let's define the ``accumulator`` function. It adds its argument to the
internal state, and returns the old state value.
...
...
@@ -306,7 +305,7 @@ Using Random Numbers
Because in Theano you first express everything symbolically and
afterwards compile this expression to get functions,
using pseudo-random numbers is not as straightforward as it is in
numpy, though also not to complicated.
numpy, though also not to
o
complicated.
The way to think about putting randomness into Theano's computations is
to put random variables in your graph. Theano will allocate a numpy
...
...
doc/tutorial/modes.txt
浏览文件 @
0530d657
...
...
@@ -50,7 +50,7 @@ expressions or new optimizations) to run your code using the DebugMode
do several self-checks and assertations that can help to diagnose
possible programming errors that can lead to incorect output. Note that
``DEBUG_MODE`` is much slower then ``FAST_RUN`` or ``FAST_COMPILE`` so
use it only during development (not when you lunch 1000 process on a
use it only during development (not when you l
a
unch 1000 process on a
cluster!).
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论