Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
531919fd
提交
531919fd
authored
8月 18, 2021
作者:
Ricardo
提交者:
Thomas Wiecki
8月 19, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove `warn__inc_subtensor1_opt` flag
上级
cbb4af7b
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
0 行增加
和
24 行删除
+0
-24
configdefaults.py
aesara/configdefaults.py
+0
-10
basic_opt.py
aesara/tensor/basic_opt.py
+0
-14
没有找到文件。
aesara/configdefaults.py
浏览文件 @
531919fd
...
@@ -1463,16 +1463,6 @@ def add_deprecated_configvars():
...
@@ -1463,16 +1463,6 @@ def add_deprecated_configvars():
in_c_key
=
False
,
in_c_key
=
False
,
)
)
config
.
add
(
"warn__inc_subtensor1_opt"
,
"Warn if previous versions of Aesara (before 0.10) could have "
"given incorrect results when computing "
"inc_subtensor(zeros[idx], x)[idx], when idx is an array of integers "
"with duplicated values."
,
BoolParam
(
_warn_default
(
"0.10"
)),
in_c_key
=
False
,
)
def
add_scan_configvars
():
def
add_scan_configvars
():
config
.
add
(
config
.
add
(
...
...
aesara/tensor/basic_opt.py
浏览文件 @
531919fd
...
@@ -6,7 +6,6 @@ import logging
...
@@ -6,7 +6,6 @@ import logging
import
sys
import
sys
import
time
import
time
import
traceback
import
traceback
import
warnings
from
collections
import
defaultdict
from
collections
import
defaultdict
from
io
import
StringIO
from
io
import
StringIO
...
@@ -3486,19 +3485,6 @@ def local_adv_sub1_adv_inc_sub1(fgraph, node):
...
@@ -3486,19 +3485,6 @@ def local_adv_sub1_adv_inc_sub1(fgraph, node):
return
return
if
not
inp
.
owner
.
op
.
set_instead_of_inc
:
if
not
inp
.
owner
.
op
.
set_instead_of_inc
:
if
config
.
warn__inc_subtensor1_opt
:
warnings
.
warning
(
"Your current code is fine, but Aesara versions "
"between 0.7rc1 and 0.10 (or development versions "
"between Nov. 2014 and May 2017) "
"might have given incorrect results. This graph has "
"following pattern: inc_subtensor(zeros[idx], x)[idx], "
"where idx is an array of integers. This used to be "
'optimized to "x", which is incorrect if there are '
"duplicated indices in idx. "
"To disable this warning, set the Aesara flag "
"warn__inc_subtensor1_opt to False."
)
return
return
cond
=
[
aet_all
(
and_
(
lt
(
idx
,
x
.
shape
[
0
]),
ge
(
idx
,
-
x
.
shape
[
0
])))]
cond
=
[
aet_all
(
and_
(
lt
(
idx
,
x
.
shape
[
0
]),
ge
(
idx
,
-
x
.
shape
[
0
])))]
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论