提交 28f334c5 authored 作者: Razvan Pascanu's avatar Razvan Pascanu

comment about disconnected

上级 8759f6a7
...@@ -1315,6 +1315,9 @@ class Scan(PureOp): ...@@ -1315,6 +1315,9 @@ class Scan(PureOp):
else: else:
for inner_out in ols: for inner_out in ols:
if hasattr(inner_out, 'dtype'): if hasattr(inner_out, 'dtype'):
# Note that we do not care about the output of
# this compute gradient. We just care to see if
# it is None or not. (i.e. disconnected or not)
tmp = compute_gradient( tmp = compute_gradient(
inner_out, inner_out,
safe_new(inner_out, dtype='float64'), safe_new(inner_out, dtype='float64'),
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论