提交 71c2c38f authored 作者: Ian Goodfellow's avatar Ian Goodfellow

clarified an error message

上级 47de01bd
......@@ -792,7 +792,8 @@ def _populate_grad_dict(var_to_node_to_idx,
constant_value = tensor.get_constant_value(term)
except:
msg = "%s.grad returned %s of type %s for input"
msg += " %d. This input is only connected to "
msg += " %d. This input's only connections to "
msg += "the cost through this op are via "
msg += "integer-valued outputs so it should be "
msg += "NullType, DisconnectedType, or some form "
msg += "of zeros. It is not NullType or "
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论