提交 ca8d60a3 authored 作者: Ricardo Vieira's avatar Ricardo Vieira 提交者: Ricardo Vieira

Truncate old comment

上级 5d4b0c4b
...@@ -929,12 +929,7 @@ def _populate_var_to_app_to_idx(outputs, wrt, consider_constant): ...@@ -929,12 +929,7 @@ def _populate_var_to_app_to_idx(outputs, wrt, consider_constant):
continue continue
if ipt not in var_to_app_to_idx: if ipt not in var_to_app_to_idx:
# This object here *must* be ordered, because # This object *must* be ordered for the grad graph to be deterministic
# we iterate over its keys when adding up the terms of the
# gradient on ipt. If it is a regular dict, the grad method
# will return something that is analytically correct, but
# whose order of doing additions depends on the memory
# location of the apply nodes.
var_to_app_to_idx[ipt] = {} var_to_app_to_idx[ipt] = {}
app_to_idx = var_to_app_to_idx[ipt] app_to_idx = var_to_app_to_idx[ipt]
if app not in app_to_idx: if app not in app_to_idx:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论