提交 29950d26 authored 作者: Frederic Bastien's avatar Frederic Bastien

Don't catch interrupt.

上级 ba70231b
...@@ -240,7 +240,7 @@ def Rop(f, wrt, eval_points): ...@@ -240,7 +240,7 @@ def Rop(f, wrt, eval_points):
elif inp.owner is None: elif inp.owner is None:
try: try:
local_eval_points.append(inp.zeros_like()) local_eval_points.append(inp.zeros_like())
except: except Exception:
# None should be used for non-differentiable # None should be used for non-differentiable
# arguments, like for example random states # arguments, like for example random states
local_eval_points.append(None) local_eval_points.append(None)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论