Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
04546767
提交
04546767
authored
8月 10, 2015
作者:
Iban Harlouchet
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
numpydoc for theano/sandbox/scan.py
上级
966aa9bd
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
24 行增加
和
13 行删除
+24
-13
scan.py
theano/sandbox/scan.py
+24
-13
没有找到文件。
theano/sandbox/scan.py
浏览文件 @
04546767
...
@@ -49,13 +49,18 @@ def scan(fn,
...
@@ -49,13 +49,18 @@ def scan(fn,
control over the scan op, avoiding certain difficulties that arose from
control over the scan op, avoiding certain difficulties that arose from
missing optimizations.
missing optimizations.
:param fn: lambda function that describes one step of scan (see the
Parameters
----------
fn
Lambda function that describes one step of scan (see the
official Theano scan function)
official Theano scan function)
:param sequences: similar to the official Theano's scan. This version
sequences
Similar to the official Theano's scan. This version
of scan does not support taps for the sequences (it can only be a
of scan does not support taps for the sequences (it can only be a
list of tensor). Scan assumes that sequences have the right length
list of tensor). Scan assumes that sequences have the right length
and it does not check for this.
and it does not check for this.
:param states: similar to outputs_info of the official scan function.
states
Similar to outputs_info of the official scan function.
There is one crucial difference though, namely that the `initial`
There is one crucial difference though, namely that the `initial`
key in the dictionary has been replace by 'membuf' key. This
key in the dictionary has been replace by 'membuf' key. This
reflects the change of meaning. Instead of passing to scan just
reflects the change of meaning. Instead of passing to scan just
...
@@ -72,21 +77,27 @@ def scan(fn,
...
@@ -72,21 +77,27 @@ def scan(fn,
For states that do not require a initial state, one has to provide a
For states that do not require a initial state, one has to provide a
dictionary with a single key 'steps' that says how many intermediate
dictionary with a single key 'steps' that says how many intermediate
results to store. See examples below for more insight.
results to store. See examples below for more insight.
:param n_steps: This parameter is mandatory and it will represent the
n_steps
This parameter is mandatory and it will represent the
number of steps scan will do (scan will not check sequences or any
number of steps scan will do (scan will not check sequences or any
other source of information to figure out how many steps it needs
other source of information to figure out how many steps it needs
to do).
to do).
:param mode: Same as for the official scan
mode
:param name: Same as for the official scan
Same as for the official scan.
:param profile: Same as for the official scan
name
Same as for the official scan.
Note:
profile
- there is no truncate / go_backwards anymore !
Same as for the official scan.
- the outputs returned by scan contain the initial states as well (i.e.
Notes
-----
- There is no truncate / go_backwards anymore !
- The outputs returned by scan contain the initial states as well (i.e.
if I loop over k steps, with my smallest tap for an output -3 and keep
if I loop over k steps, with my smallest tap for an output -3 and keep
al intermediate results, my output will be of length k+3
al intermediate results, my output will be of length k+3.
Examples:
Examples
--------
(a) if you do not want to store any intermediate results (just the
(a) if you do not want to store any intermediate results (just the
last one)
last one)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论