提交 62992538 authored 作者: Ricardo's avatar Ricardo 提交者: Thomas Wiecki

Remove `warn__vm_gc_bug` flag

上级 ce8a772d
...@@ -1454,19 +1454,6 @@ def add_deprecated_configvars(): ...@@ -1454,19 +1454,6 @@ def add_deprecated_configvars():
in_c_key=False, in_c_key=False,
) )
config.add(
"warn__vm_gc_bug",
"There was a bug that existed in the default Aesara configuration,"
" only in the development version between July 5th 2012"
" and July 30th 2012. This was not in a released version."
" If your code was affected by this bug, a warning"
" will be printed during the code execution if you use the"
" `linker=vm,vm__lazy=True,warn__vm_gc_bug=True` Aesara flags."
" This warning is disabled by default as the bug was not released.",
BoolParam(False),
in_c_key=False,
)
config.add( config.add(
"warn__signal_conv2d_interface", "warn__signal_conv2d_interface",
( (
......
...@@ -569,23 +569,6 @@ class Stack(VM): ...@@ -569,23 +569,6 @@ class Stack(VM):
# recomputed! This can cause wrong value # recomputed! This can cause wrong value
# with some combination of inplace op. # with some combination of inplace op.
compute_map[i][0] = 2 compute_map[i][0] = 2
if (
config.warn__vm_gc_bug
and current_apply in apply_stack
and current_apply.op.destroy_map
):
warnings.warn(
"There was a bug that existed in "
"the default Aesara configuration,"
" only in the development version "
"between July 5th 2012 and "
"July 30th 2012. This was not in "
"a released version. The bug was "
"affecting this script.",
# The stack level is not good when
# inside a Scan.
stacklevel=3,
)
self.node_cleared_order.append(input_index) self.node_cleared_order.append(input_index)
elif not computed_ins: elif not computed_ins:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论