提交 ef8ee794 authored 作者: Frederic Bastien's avatar Frederic Bastien

Fix regression in this PR while unpickling.

上级 659f6399
......@@ -454,6 +454,18 @@ class PrintListener(Feature):
node, i, r, new_r))
class PreserveNames(Feature):
"""
This preserve some variables names during optimization.
Deprecated. We need to keep it to allow unpickling.
"""
def on_change_input(self, fgraph, node, i, r, new_r, reason=None):
if r.name is not None and new_r.name is None:
new_r.name = r.name
class PreserveVariableAttributes(Feature):
"""
This preserve some variables attributes and tag during optimization.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论