Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
0d203fe3
提交
0d203fe3
authored
9月 12, 2016
作者:
Frederic Bastien
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update docstring
上级
038e3a3f
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
18 行增加
和
12 行删除
+18
-12
opt.py
theano/gof/opt.py
+18
-12
没有找到文件。
theano/gof/opt.py
浏览文件 @
0d203fe3
...
@@ -197,10 +197,11 @@ class SeqOptimizer(Optimizer, list):
...
@@ -197,10 +197,11 @@ class SeqOptimizer(Optimizer, list):
"""
"""
Parameters
Parameters
----------
----------
opts : List
*opts :
The List of optimizers to be applied to a node
The List of optimizers to be applied to a node
kw : Dict
failure_callback : callable or None
Dictonary containing failure callback. The only supported keyword is `failure_callback`.
Keyword only argument. A callback used when a failure
happen during optimization.
"""
"""
if
len
(
opts
)
==
1
and
isinstance
(
opts
[
0
],
(
list
,
tuple
)):
if
len
(
opts
)
==
1
and
isinstance
(
opts
[
0
],
(
list
,
tuple
)):
...
@@ -1231,17 +1232,22 @@ def local_optimizer(tracks, inplace=False, requirements=()):
...
@@ -1231,17 +1232,22 @@ def local_optimizer(tracks, inplace=False, requirements=()):
class
LocalOptGroup
(
LocalOptimizer
):
class
LocalOptGroup
(
LocalOptimizer
):
"""
"""Takes a list of LocalOptimizer and applies them to the node.
Takes a list of LocalOptimizer and applies them to the nodes.
If apply_all_opts is False, it will return after the first optimizer applied.
Otherwise, it will start again with the node returned by the previous optimizer.
Parameters
Parameters
----------
----------
optimizers : List
optimizers :
List of optimizers to be applied to a node
The List of optimizers to be applied to a node
kwargs : Dict
reentrant : bool (Default True)
Dictionary containing apply_all_opts parameter. When True, multiple optimizers are applied.
Keyword only argument. Reentrant information. Some global
optimizer like NavigatorOptimizer can use this value to
determine if it ignore new nodes during a pass on the
nodes. Sometimes, ignore_newtrees is not reentrant.
apply_all_opts : bool (Default False)
If False, it will return after the new node after the first optimizer
applied. Otherwise, it will start again with the new node until no new
optimization apply.
"""
"""
def
__init__
(
self
,
*
optimizers
,
**
kwargs
):
def
__init__
(
self
,
*
optimizers
,
**
kwargs
):
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论