Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
423b9851
提交
423b9851
authored
8月 19, 2021
作者:
Ricardo
提交者:
Thomas Wiecki
8月 19, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove `warn__subtensor_merge_bug` flag
上级
47586163
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
0 行增加
和
22 行删除
+0
-22
configdefaults.py
aesara/configdefaults.py
+0
-9
basic_opt.py
aesara/tensor/basic_opt.py
+0
-7
loop.rst
doc/tutorial/loop.rst
+0
-2
loop_solution_1.py
doc/tutorial/loop_solution_1.py
+0
-4
没有找到文件。
aesara/configdefaults.py
浏览文件 @
423b9851
...
@@ -1454,15 +1454,6 @@ def add_deprecated_configvars():
...
@@ -1454,15 +1454,6 @@ def add_deprecated_configvars():
in_c_key
=
False
,
in_c_key
=
False
,
)
)
config
.
add
(
"warn__subtensor_merge_bug"
,
"Warn if previous versions of Aesara (before 0.5rc2) could have given "
"incorrect results when indexing into a subtensor with negative "
"stride (for instance, for instance, x[a:b:-1][c])."
,
BoolParam
(
_warn_default
(
"0.5"
)),
in_c_key
=
False
,
)
config
.
add
(
config
.
add
(
"warn__gpu_set_subtensor1"
,
"warn__gpu_set_subtensor1"
,
"Warn if previous versions of Aesara (before 0.6) could have given "
"Warn if previous versions of Aesara (before 0.6) could have given "
...
...
aesara/tensor/basic_opt.py
浏览文件 @
423b9851
...
@@ -2910,13 +2910,6 @@ def merge_two_slices(fgraph, slice1, len1, slice2, len2):
...
@@ -2910,13 +2910,6 @@ def merge_two_slices(fgraph, slice1, len1, slice2, len2):
# the k-th element from sl.start but the k-th element from
# the k-th element from sl.start but the k-th element from
# sl.stop backwards
# sl.stop backwards
n_val
=
sl1
.
stop
-
1
-
sl2
*
sl1
.
step
n_val
=
sl1
.
stop
-
1
-
sl2
*
sl1
.
step
if
config
.
warn__subtensor_merge_bug
:
warnings
.
warning
(
"Your current code is fine, but Aesara versions "
"prior to 0.5rc2 might have given an incorrect result. "
"To disable this warning, set the Aesara flag "
"warn__subtensor_merge_bug to False."
)
# we need to pick either n_val or p_val and then follow same
# we need to pick either n_val or p_val and then follow same
# steps as above for covering the index error cases
# steps as above for covering the index error cases
val
=
switch
(
lt
(
reverse1
,
0
),
n_val
,
p_val
)
val
=
switch
(
lt
(
reverse1
,
0
),
n_val
,
p_val
)
...
...
doc/tutorial/loop.rst
浏览文件 @
423b9851
...
@@ -362,7 +362,6 @@ Note that if you want to use a random variable ``d`` that will not be updated th
...
@@ -362,7 +362,6 @@ Note that if you want to use a random variable ``d`` that will not be updated th
import aesara
import aesara
import aesara.tensor as aet
import aesara.tensor as aet
aesara.config.warn__subtensor_merge_bug = False
k = aet.iscalar("k")
k = aet.iscalar("k")
A = aet.vector("A")
A = aet.vector("A")
...
@@ -396,7 +395,6 @@ Note that if you want to use a random variable ``d`` that will not be updated th
...
@@ -396,7 +395,6 @@ Note that if you want to use a random variable ``d`` that will not be updated th
import numpy
import numpy
import aesara
import aesara
import aesara.tensor as aet
import aesara.tensor as aet
aesara.config.warn__subtensor_merge_bug = False
coefficients = aesara.tensor.vector("coefficients")
coefficients = aesara.tensor.vector("coefficients")
x = aet.scalar("x")
x = aet.scalar("x")
...
...
doc/tutorial/loop_solution_1.py
浏览文件 @
423b9851
...
@@ -10,8 +10,6 @@ import aesara.tensor as aet
...
@@ -10,8 +10,6 @@ import aesara.tensor as aet
# 1. First example
# 1. First example
aesara
.
config
.
warn__subtensor_merge_bug
=
False
k
=
aet
.
iscalar
(
"k"
)
k
=
aet
.
iscalar
(
"k"
)
A
=
aet
.
vector
(
"A"
)
A
=
aet
.
vector
(
"A"
)
...
@@ -58,8 +56,6 @@ print(calculate_polynomial1(test_coeff, 3))
...
@@ -58,8 +56,6 @@ print(calculate_polynomial1(test_coeff, 3))
# 3. Reduction performed inside scan
# 3. Reduction performed inside scan
aesara
.
config
.
warn__subtensor_merge_bug
=
False
coefficients
=
aet
.
vector
(
"coefficients"
)
coefficients
=
aet
.
vector
(
"coefficients"
)
x
=
aet
.
scalar
(
"x"
)
x
=
aet
.
scalar
(
"x"
)
max_coefficients_supported
=
10000
max_coefficients_supported
=
10000
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论