提交 399c2170 authored 作者: Frederic's avatar Frederic

fix typo in comment

上级 09e09da0
...@@ -1088,7 +1088,7 @@ def _populate_grad_dict(var_to_app_to_idx, ...@@ -1088,7 +1088,7 @@ def _populate_grad_dict(var_to_app_to_idx,
if len(input_grads) != len(inputs): if len(input_grads) != len(inputs):
raise ValueError(("%s returned the wrong number of" + raise ValueError(("%s returned the wrong number of" +
" gradient terms.") % str(node.op)) " gradient terms.") % str(node.op))
# We can not enforce this, as AdvancedSubtensor1 have an option to # We can not enforce this, as AdvancedSubtensor1 has an option to
# return the sparse grad for optimization reason. # return the sparse grad for optimization reason.
# for ig, i in zip(input_grads, inputs): # for ig, i in zip(input_grads, inputs):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论